home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / Operating System / TN-Operating System < prev   
MacBinary  |  1994-04-27  |  145.4 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Jul 15 16:00:46 1993, modified Wed Apr 27 06:14:44 1994, creator 'HLX2', type 'ONLN', 143859 bytes "TN-Operating System" , at 0x23273 4802 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 54 4e 2d 4f 70 65 | 72 61 74 69 6e 67 20 53 |..TN-Ope|rating S|
|00000010| 79 73 74 65 6d 00 00 00 | 00 00 00 00 00 00 00 00 |ystem...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 02 31 f3 00 | 00 12 c2 a8 6b 67 ee a9 |.....1..|....kg..|
|00000060| e3 eb 94 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 da 2d 00 00 |........|.....-..|
|00000080| 4f 53 20 31 20 2d 20 43 | 6f 6d 6d 61 6e 64 2d 53 |OS 1 - C|ommand-S|
|00000090| 68 69 66 74 2d 4e 75 6d | 62 65 72 20 4b 65 79 73 |hift-Num|ber Keys|
|000000a0| 0d 4f 70 65 72 61 74 69 | 6e 67 20 53 79 73 74 65 |.Operati|ng Syste|
|000000b0| 6d 09 0d 52 65 76 69 73 | 65 64 20 62 79 3a 09 47 |m..Revis|ed by:.G|
|000000c0| 69 6e 67 65 72 20 4a 65 | 72 6e 69 67 61 6e 09 4d |inger Je|rnigan.M|
|000000d0| 61 72 63 68 2c 20 20 31 | 39 38 38 0d 57 72 69 74 |arch, 1|988.Writ|
|000000e0| 74 65 6e 20 62 79 3a 09 | 48 61 72 76 65 79 20 41 |ten by:.|Harvey A|
|000000f0| 6c 63 61 62 65 73 09 4d | 61 72 63 68 20 2c 31 39 |lcabes.M|arch ,19|
|00000100| 38 35 0d 49 6e 20 74 68 | 65 20 73 74 61 6e 64 61 |85.In th|e standa|
|00000110| 72 64 20 73 79 73 74 65 | 6d 2c 20 74 68 65 72 65 |rd syste|m, there|
|00000120| 20 61 72 65 20 74 77 6f | 20 43 6f 6d 6d 61 6e 64 | are two| Command|
|00000130| 2d 53 68 69 66 74 2d 6e | 75 6d 62 65 72 20 6b 65 |-Shift-n|umber ke|
|00000140| 79 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 73 20 74 |y combin|ations t|
|00000150| 68 61 74 20 61 72 65 20 | 61 75 74 6f 6d 61 74 69 |hat are |automati|
|00000160| 63 61 6c 6c 79 20 63 61 | 70 74 75 72 65 64 20 61 |cally ca|ptured a|
|00000170| 6e 64 20 70 72 6f 63 65 | 73 73 65 64 20 62 79 20 |nd proce|ssed by |
|00000180| 47 65 74 4e 65 78 74 45 | 76 65 6e 74 2e 20 54 68 |GetNextE|vent. Th|
|00000190| 65 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 73 20 61 |e combin|ations a|
|000001a0| 72 65 3a 0d 43 6f 6d 6d | 61 6e 64 2d 53 68 69 66 |re:.Comm|and-Shif|
|000001b0| 74 2d 31 09 45 6a 65 63 | 74 20 69 6e 74 65 72 6e |t-1.Ejec|t intern|
|000001c0| 61 6c 20 64 69 73 6b 0d | 43 6f 6d 6d 61 6e 64 2d |al disk.|Command-|
|000001d0| 53 68 69 66 74 2d 32 09 | 45 6a 65 63 74 20 65 78 |Shift-2.|Eject ex|
|000001e0| 74 65 72 6e 61 6c 20 64 | 69 73 6b 0d 4e 75 6d 62 |ternal d|isk.Numb|
|000001f0| 65 72 73 20 66 72 6f 6d | 20 33 20 74 6f 20 39 20 |ers from| 3 to 9 |
|00000200| 61 72 65 20 61 6c 73 6f | 20 63 61 70 74 75 72 65 |are also| capture|
|00000210| 64 20 62 79 20 47 65 74 | 4e 65 78 74 45 76 65 6e |d by Get|NextEven|
|00000220| 74 2c 20 62 75 74 20 61 | 72 65 20 70 72 6f 63 65 |t, but a|re proce|
|00000230| 73 73 65 64 20 62 79 20 | 63 61 6c 6c 69 6e 67 20 |ssed by |calling |
|00000240| d4 46 4b 45 59 d5 20 72 | 65 73 6f 75 72 63 65 73 |.FKEY. r|esources|
|00000250| 2e 20 59 6f 75 20 63 61 | 6e 20 69 6d 70 6c 65 6d |. You ca|n implem|
|00000260| 65 6e 74 20 79 6f 75 72 | 20 6f 77 6e 20 61 63 74 |ent your| own act|
|00000270| 69 6f 6e 73 20 66 6f 72 | 20 43 6f 6d 6d 61 6e 64 |ions for| Command|
|00000280| 2d 53 68 69 66 74 2d 6e | 75 6d 62 65 72 20 63 6f |-Shift-n|umber co|
|00000290| 6d 62 69 6e 61 74 69 6f | 6e 73 20 66 6f 72 20 2d |mbinatio|ns for -|
|000002a0| 6e 75 6d 62 65 72 73 20 | 35 20 74 6f 20 39 20 62 |numbers |5 to 9 b|
|000002b0| 79 20 64 65 66 69 6e 69 | 6e 67 20 79 6f 75 72 20 |y defini|ng your |
|000002c0| 6f 77 6e 20 d4 46 4b 45 | 59 d5 20 72 65 73 6f 75 |own .FKE|Y. resou|
|000002d0| 72 63 65 2e 20 54 68 65 | 20 72 6f 75 74 69 6e 65 |rce. The| routine|
|000002e0| 20 6d 75 73 74 20 68 61 | 76 65 20 6e 6f 20 70 61 | must ha|ve no pa|
|000002f0| 72 61 6d 65 74 65 72 73 | 2e 20 54 68 65 20 49 44 |rameters|. The ID|
|00000300| 20 6f 66 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 | of the |resource|
|00000310| 20 6d 75 73 74 20 63 6f | 72 72 65 73 70 6f 6e 64 | must co|rrespond|
|00000320| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 79 | to the |number y|
|00000330| 6f 75 20 77 61 6e 74 20 | 74 68 65 20 72 6f 75 74 |ou want |the rout|
|00000340| 69 6e 65 20 74 6f 20 72 | 65 73 70 6f 6e 64 20 74 |ine to r|espond t|
|00000350| 6f 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |o. For e|xample, |
|00000360| 69 66 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 64 |if you w|ant to d|
|00000370| 65 66 69 6e 65 20 61 6e | 20 61 63 74 69 6f 6e 20 |efine an| action |
|00000380| 66 6f 72 20 43 6f 6d 6d | 61 6e 64 2d 53 68 69 66 |for Comm|and-Shif|
|00000390| 74 2d 38 2c 20 79 6f 75 | 20 77 6f 75 6c 64 20 63 |t-8, you| would c|
|000003a0| 72 65 61 74 65 20 61 6e | 20 d4 46 4b 45 59 d5 20 |reate an| .FKEY. |
|000003b0| 72 65 73 6f 75 72 63 65 | 20 77 69 74 68 20 61 6e |resource| with an|
|000003c0| 20 49 44 20 6f 66 20 38 | 2e 20 54 68 65 20 d4 46 | ID of 8|. The .F|
|000003d0| 4b 45 59 d5 20 72 65 73 | 6f 75 72 63 65 20 73 68 |KEY. res|ource sh|
|000003e0| 6f 75 6c 64 20 63 6f 6e | 74 61 69 6e 20 74 68 65 |ould con|tain the|
|000003f0| 20 63 6f 64 65 20 74 68 | 61 74 20 79 6f 75 20 77 | code th|at you w|
|00000400| 61 6e 74 20 74 6f 20 65 | 78 65 63 75 74 65 20 77 |ant to e|xecute w|
|00000410| 68 65 6e 20 74 68 65 20 | 6b 65 79 20 69 73 20 70 |hen the |key is p|
|00000420| 72 65 73 73 65 64 2e 0d | 54 68 65 20 66 6f 6c 6c |ressed..|The foll|
|00000430| 6f 77 69 6e 67 20 43 6f | 6d 6d 61 6e 64 2d 53 68 |owing Co|mmand-Sh|
|00000440| 69 66 74 2d 6e 75 6d 62 | 65 72 20 6b 65 79 20 63 |ift-numb|er key c|
|00000450| 6f 6d 62 69 6e 61 74 69 | 6f 6e 73 20 61 72 65 20 |ombinati|ons are |
|00000460| 69 6d 70 6c 65 6d 65 6e | 74 65 64 20 77 69 74 68 |implemen|ted with|
|00000470| 20 d4 46 4b 45 59 d5 20 | 72 65 73 6f 75 72 63 65 | .FKEY. |resource|
|00000480| 73 20 69 6e 20 74 68 65 | 20 73 74 61 6e 64 61 72 |s in the| standar|
|00000490| 64 20 53 79 73 74 65 6d | 20 66 69 6c 65 2e 0d 43 |d System| file..C|
|000004a0| 6f 6d 6d 61 6e 64 2d 53 | 68 69 66 74 2d 33 09 53 |ommand-S|hift-3.S|
|000004b0| 61 76 65 20 63 75 72 72 | 65 6e 74 20 73 63 72 65 |ave curr|ent scre|
|000004c0| 65 6e 20 61 73 20 4d 61 | 63 50 61 69 6e 74 20 66 |en as Ma|cPaint f|
|000004d0| 69 6c 65 20 6e 61 6d 65 | 64 0d 09 09 09 53 63 72 |ile name|d....Scr|
|000004e0| 65 65 6e 20 30 2c 20 53 | 63 72 65 65 6e 20 31 2c |een 0, S|creen 1,|
|000004f0| 20 c9 20 53 63 72 65 65 | 6e 20 39 0d 09 09 09 28 | . Scree|n 9....(|
|00000500| 57 6f 72 6b 73 20 69 6e | 20 6f 6e 65 2d 62 69 74 |Works in| one-bit|
|00000510| 20 6d 6f 64 65 20 6f 6e | 6c 79 20 6f 6e 20 4d 61 | mode on|ly on Ma|
|00000520| 63 20 49 49 29 0d 43 6f | 6d 6d 61 6e 64 2d 53 68 |c II).Co|mmand-Sh|
|00000530| 69 66 74 2d 34 09 50 72 | 69 6e 74 20 74 68 65 20 |ift-4.Pr|int the |
|00000540| 61 63 74 69 76 65 20 77 | 69 6e 64 6f 77 20 28 74 |active w|indow (t|
|00000550| 6f 20 61 6e 20 49 6d 61 | 67 65 57 72 69 74 65 72 |o an Ima|geWriter|
|00000560| 29 0d 28 77 69 74 68 20 | 43 61 70 73 20 4c 6f 63 |).(with |Caps Loc|
|00000570| 6b 20 6f 6e 29 09 50 72 | 69 6e 74 20 74 68 65 20 |k on).Pr|int the |
|00000580| 65 6e 74 69 72 65 20 73 | 63 72 65 65 6e 20 28 74 |entire s|creen (t|
|00000590| 6f 20 61 6e 20 49 6d 61 | 67 65 57 72 69 74 65 72 |o an Ima|geWriter|
|000005a0| 29 0d 46 75 72 74 68 65 | 72 20 52 65 66 65 72 65 |).Furthe|r Refere|
|000005b0| 6e 63 65 3a 0d a5 20 54 | 68 65 20 54 6f 6f 6c 62 |nce:.. T|he Toolb|
|000005c0| 6f 78 20 45 76 65 6e 74 | 20 4d 61 6e 61 67 65 72 |ox Event| Manager|
|000005d0| 0d 4f 53 20 32 20 2d 20 | 47 69 76 69 6e 67 20 74 |.OS 2 - |Giving t|
|000005e0| 68 65 20 28 44 65 73 6b | 29 48 6f 6f 6b 20 74 6f |he (Desk|)Hook to|
|000005f0| 20 49 4e 49 54 73 0d 4f | 70 65 72 61 74 69 6e 67 | INITs.O|perating|
|00000600| 20 53 79 73 74 65 6d 09 | 0d 52 65 76 69 73 65 64 | System.|.Revised|
|00000610| 20 62 79 3a 09 50 65 74 | 65 20 48 65 6c 6d 65 09 | by:.Pet|e Helme.|
|00000620| 4f 63 74 6f 62 65 72 20 | 31 39 38 39 0d 57 72 69 |October |1989.Wri|
|00000630| 74 74 65 6e 20 62 79 3a | 09 50 65 74 65 20 48 65 |tten by:|.Pete He|
|00000640| 6c 6d 65 09 41 75 67 75 | 73 74 20 31 39 38 39 0d |lme.Augu|st 1989.|
|00000650| 54 68 69 73 20 54 65 63 | 68 6e 69 63 61 6c 20 4e |This Tec|hnical N|
|00000660| 6f 74 65 20 64 69 73 63 | 75 73 73 65 73 20 49 4e |ote disc|usses IN|
|00000670| 49 54 20 65 76 69 6c 73 | 2c 20 74 68 65 20 66 6f |IT evils|, the fo|
|00000680| 72 65 6d 6f 73 74 20 6f | 66 20 77 68 69 63 68 20 |remost o|f which |
|00000690| 64 65 61 6c 73 20 77 69 | 74 68 20 63 6c 65 61 72 |deals wi|th clear|
|000006a0| 69 6e 67 20 44 65 73 6b | 48 6f 6f 6b 20 61 6e 64 |ing Desk|Hook and|
|000006b0| 20 44 72 61 67 48 6f 6f | 6b 20 61 74 20 49 4e 49 | DragHoo|k at INI|
|000006c0| 54 20 74 69 6d 65 2e 0d | 43 68 61 6e 67 65 73 20 |T time..|Changes |
|000006d0| 73 69 6e 63 65 20 41 75 | 67 75 73 74 20 31 39 38 |since Au|gust 198|
|000006e0| 39 3a 20 20 41 64 64 65 | 64 20 77 61 72 6e 69 6e |9: Adde|d warnin|
|000006f0| 67 20 61 62 6f 75 74 20 | 63 6c 65 61 72 69 6e 67 |g about |clearing|
|00000700| 20 44 72 61 67 48 6f 6f | 6b 2e 0d 49 66 20 79 6f | DragHoo|k..If yo|
|00000710| 75 d5 76 65 20 73 75 72 | 76 69 76 65 64 20 74 68 |u.ve sur|vived th|
|00000720| 65 20 74 79 70 69 63 61 | 6c 20 44 54 53 20 54 69 |e typica|l DTS Ti|
|00000730| 72 61 64 65 2a 20 61 6e | 64 20 73 74 69 6c 6c 20 |rade* an|d still |
|00000740| 66 65 65 6c 20 74 68 65 | 20 6e 65 65 64 20 74 6f |feel the| need to|
|00000750| 20 64 69 73 70 6c 61 79 | 20 61 20 64 69 61 6c 6f | display| a dialo|
|00000760| 67 20 62 6f 78 20 6f 72 | 20 77 69 6e 64 6f 77 20 |g box or| window |
|00000770| 69 6e 20 61 6e 20 49 4e | 49 54 2c 20 79 6f 75 20 |in an IN|IT, you |
|00000780| 6e 65 65 64 20 74 6f 20 | 62 65 20 61 77 61 72 65 |need to |be aware|
|00000790| 20 6f 66 20 61 20 70 72 | 6f 62 6c 65 6d 20 77 68 | of a pr|oblem wh|
|000007a0| 69 63 68 20 65 78 69 73 | 74 73 20 6f 6e 20 4d 61 |ich exis|ts on Ma|
|000007b0| 63 69 6e 74 6f 73 68 65 | 73 20 65 61 72 6c 69 65 |cintoshe|s earlie|
|000007c0| 72 20 74 68 61 6e 20 74 | 68 65 20 4d 61 63 69 6e |r than t|he Macin|
|000007d0| 74 6f 73 68 20 49 49 20 | 28 72 65 6d 65 6d 62 65 |tosh II |(remembe|
|000007e0| 72 20 74 68 6f 73 65 3f | 29 2e 20 20 54 68 65 72 |r those?|). Ther|
|000007f0| 65 20 69 73 20 61 20 6c | 6f 77 2d 6d 65 6d 6f 72 |e is a l|ow-memor|
|00000800| 79 20 67 6c 6f 62 61 6c | 20 6e 61 6d 65 64 20 44 |y global| named D|
|00000810| 65 73 6b 48 6f 6f 6b 20 | 28 24 41 36 43 29 2c 20 |eskHook |($A6C), |
|00000820| 77 68 69 63 68 20 63 61 | 6e 20 63 6f 6e 74 61 69 |which ca|n contai|
|00000830| 6e 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 61 |n a poin|ter to a|
|00000840| 20 72 6f 75 74 69 6e 65 | 20 72 65 73 70 6f 6e 73 | routine| respons|
|00000850| 69 62 6c 65 20 66 6f 72 | 20 70 61 69 6e 74 69 6e |ible for| paintin|
|00000860| 67 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |g the Ma|cintosh |
|00000870| 64 65 73 6b 74 6f 70 2e | 20 20 49 66 20 69 74 20 |desktop.| If it |
|00000880| 69 73 20 4e 49 4c 2c 20 | 77 68 69 63 68 20 69 73 |is NIL, |which is|
|00000890| 20 75 73 75 61 6c 6c 79 | 20 74 68 65 20 63 61 73 | usually| the cas|
|000008a0| 65 2c 20 74 68 65 20 53 | 79 73 74 65 6d 20 70 61 |e, the S|ystem pa|
|000008b0| 69 6e 74 73 20 74 68 65 | 20 64 65 73 6b 74 6f 70 |ints the| desktop|
|000008c0| 20 77 69 74 68 20 74 68 | 65 20 73 74 61 6e 64 61 | with th|e standa|
|000008d0| 72 64 20 70 61 74 74 65 | 72 6e 2e 0d 57 68 65 6e |rd patte|rn..When|
|000008e0| 20 79 6f 75 20 73 74 61 | 72 74 20 64 69 73 70 6c | you sta|rt displ|
|000008f0| 61 79 69 6e 67 20 64 69 | 61 6c 6f 67 20 62 6f 78 |aying di|alog box|
|00000900| 65 73 20 6f 72 20 77 69 | 6e 64 6f 77 73 20 74 68 |es or wi|ndows th|
|00000910| 61 74 20 6f 62 73 63 75 | 72 65 20 74 68 65 20 64 |at obscu|re the d|
|00000920| 65 73 6b 74 6f 70 20 69 | 6e 20 79 6f 75 72 20 49 |esktop i|n your I|
|00000930| 4e 49 54 20 28 74 68 69 | 73 20 69 73 20 72 65 61 |NIT (thi|s is rea|
|00000940| 6c 6c 79 20 68 61 72 64 | 20 6e 6f 74 20 74 6f 20 |lly hard| not to |
|00000950| 64 6f 2c 20 73 6f 20 6b | 65 65 70 20 72 65 61 64 |do, so k|eep read|
|00000960| 69 6e 67 20 61 6e 64 20 | 64 6f 6e d5 74 20 6c 65 |ing and |don.t le|
|00000970| 74 20 75 73 20 63 61 74 | 63 68 20 79 6f 75 20 73 |t us cat|ch you s|
|00000980| 6b 69 70 70 69 6e 67 20 | 61 68 65 61 64 20 74 6f |kipping |ahead to|
|00000990| 20 61 6e 6f 74 68 65 72 | 20 54 65 63 68 6e 69 63 | another| Technic|
|000009a0| 61 6c 20 4e 6f 74 65 20 | 77 69 74 68 20 70 69 63 |al Note |with pic|
|000009b0| 74 75 72 65 73 20 6f 66 | 20 68 75 6d 61 6e 20 67 |tures of| human g|
|000009c0| 65 6e 65 74 69 63 20 65 | 78 70 65 72 69 6d 65 6e |enetic e|xperimen|
|000009d0| 74 73 20 67 6f 6e 65 20 | 73 6f 75 72 d1 79 6f 75 |ts gone |sour.you|
|000009e0| 20 6b 6e 6f 77 20 77 68 | 69 63 68 20 6f 6e 65 20 | know wh|ich one |
|000009f0| 49 d5 6d 20 74 61 6c 6b | 69 6e 67 20 61 62 6f 75 |I.m talk|ing abou|
|00000a00| 74 29 2c 20 74 68 65 20 | 53 79 73 74 65 6d 20 6c |t), the |System l|
|00000a10| 6f 6f 6b 73 20 61 74 20 | 44 65 73 6b 48 6f 6f 6b |ooks at |DeskHook|
|00000a20| 20 66 6f 72 20 61 20 64 | 65 73 6b 74 6f 70 20 75 | for a d|esktop u|
|00000a30| 70 64 61 74 69 6e 67 20 | 72 6f 75 74 69 6e 65 2e |pdating |routine.|
|00000a40| 20 20 53 69 6e 63 65 20 | 74 68 65 20 4d 61 63 69 | Since |the Maci|
|00000a50| 6e 74 6f 73 68 20 49 49 | 2c 20 74 68 65 20 53 79 |ntosh II|, the Sy|
|00000a60| 73 74 65 6d 20 68 61 73 | 20 63 6c 65 61 72 65 64 |stem has| cleared|
|00000a70| 20 74 68 69 73 20 68 6f | 6f 6b 20 70 72 69 6f 72 | this ho|ok prior|
|00000a80| 20 74 6f 20 63 61 6c 6c | 69 6e 67 20 79 6f 75 72 | to call|ing your|
|00000a90| 20 49 4e 49 54 3b 20 68 | 6f 77 65 76 65 72 2c 20 | INIT; h|owever, |
|00000aa0| 6f 6e 20 6d 61 63 68 69 | 6e 65 73 20 62 65 66 6f |on machi|nes befo|
|00000ab0| 72 65 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |re the M|acintosh|
|00000ac0| 20 49 49 2c 20 74 68 69 | 73 20 68 6f 6f 6b 20 69 | II, thi|s hook i|
|00000ad0| 73 20 6e 6f 74 20 63 6c | 65 61 72 65 64 20 62 65 |s not cl|eared be|
|00000ae0| 66 6f 72 65 20 74 68 65 | 20 53 79 73 74 65 6d 20 |fore the| System |
|00000af0| 63 61 6c 6c 73 20 79 6f | 75 72 20 49 4e 49 54 2c |calls yo|ur INIT,|
|00000b00| 20 73 6f 20 74 68 65 72 | 65 20 69 73 20 75 73 75 | so ther|e is usu|
|00000b10| 61 6c 6c 79 20 73 6f 6d | 65 20 6a 75 6e 6b 20 68 |ally som|e junk h|
|00000b20| 65 78 20 6c 6f 75 6e 67 | 69 6e 67 20 61 62 6f 75 |ex loung|ing abou|
|00000b30| 74 20 69 6e 20 74 68 65 | 72 65 2e 20 20 53 69 6e |t in the|re. Sin|
|00000b40| 63 65 20 44 65 73 6b 48 | 6f 6f 6b 20 69 73 20 6e |ce DeskH|ook is n|
|00000b50| 6f 74 20 4e 49 4c 2c 20 | 77 68 65 6e 20 74 68 65 |ot NIL, |when the|
|00000b60| 20 53 79 73 74 65 6d 20 | 74 72 69 65 73 20 74 6f | System |tries to|
|00000b70| 20 75 73 65 20 61 6e 64 | 20 70 65 72 66 6f 72 6d | use and| perform|
|00000b80| 20 61 20 4a 53 52 20 74 | 6f 20 74 68 69 73 20 d2 | a JSR t|o this .|
|00000b90| 61 64 64 72 65 73 73 2c | d3 20 69 74 20 62 6c 6f |address,|. it blo|
|00000ba0| 77 73 20 62 69 67 20 63 | 68 75 6e 6b 73 2e 0d 53 |ws big c|hunks..S|
|00000bb0| 6f 20 75 6e 6c 65 73 73 | 20 79 6f 75 20 6c 69 6b |o unless| you lik|
|00000bc0| 65 20 62 69 67 20 63 68 | 75 6e 6b 73 2c 20 74 68 |e big ch|unks, th|
|00000bd0| 65 20 65 61 73 79 20 77 | 61 79 20 74 6f 20 66 69 |e easy w|ay to fi|
|00000be0| 78 20 74 68 69 73 20 70 | 72 6f 62 6c 65 6d 20 69 |x this p|roblem i|
|00000bf0| 73 20 74 6f 20 63 6c 65 | 61 72 20 44 65 73 6b 48 |s to cle|ar DeskH|
|00000c00| 6f 6f 6b 20 62 65 66 6f | 72 65 20 64 6f 69 6e 67 |ook befo|re doing|
|00000c10| 20 61 6e 79 20 77 69 6e | 64 6f 77 20 64 72 61 77 | any win|dow draw|
|00000c20| 69 6e 67 2e 20 20 54 68 | 65 20 6d 6f 73 74 20 6c |ing. Th|e most l|
|00000c30| 6f 67 69 63 61 6c 20 74 | 69 6d 65 20 74 6f 20 64 |ogical t|ime to d|
|00000c40| 6f 20 74 68 69 73 20 69 | 73 20 64 75 72 69 6e 67 |o this i|s during|
|00000c50| 20 79 6f 75 72 20 69 6e | 69 74 69 61 6c 69 7a 61 | your in|itializa|
|00000c60| 74 69 6f 6e 3a 0d 09 50 | 45 41 20 09 74 68 65 50 |tion:..P|EA .theP|
|00000c70| 6f 72 74 28 41 36 29 09 | 09 3b 20 69 6e 69 74 69 |ort(A6).|.; initi|
|00000c80| 61 6c 69 7a 65 20 6f 77 | 6e 20 67 72 61 66 50 6f |alize ow|n grafPo|
|00000c90| 72 74 20 6f 66 66 20 41 | 36 0d 09 5f 49 6e 69 74 |rt off A|6.._Init|
|00000ca0| 47 72 61 66 0d 09 5f 49 | 6e 69 74 46 6f 6e 74 73 |Graf.._I|nitFonts|
|00000cb0| 0d 09 5f 49 6e 69 74 57 | 69 6e 64 6f 77 73 20 0d |.._InitW|indows .|
|00000cc0| 09 5f 54 45 49 6e 69 74 | 0d 09 43 4c 52 2e 4c 20 |._TEInit|..CLR.L |
|00000cd0| 09 2d 28 41 37 29 20 0d | 09 5f 49 6e 69 74 44 69 |.-(A7) .|._InitDi|
|00000ce0| 61 6c 6f 67 73 0d 09 43 | 4c 52 2e 4c 20 09 24 41 |alogs..C|LR.L .$A|
|00000cf0| 36 43 09 09 09 3b 20 44 | 65 73 6b 48 6f 6f 6b 0d |6C...; D|eskHook.|
|00000d00| 46 6f 72 20 79 6f 75 20 | 68 69 67 68 2d 6c 65 76 |For you |high-lev|
|00000d10| 65 6c 20 74 79 70 65 73 | 2c 20 74 68 69 73 20 74 |el types|, this t|
|00000d20| 72 61 6e 73 6c 61 74 65 | 73 20 69 6e 74 6f 3a 0d |ranslate|s into:.|
|00000d30| 70 72 6f 63 65 64 75 72 | 65 20 43 6c 65 61 72 44 |procedur|e ClearD|
|00000d40| 65 73 6b 48 6f 6f 6b 3b | 0d 09 69 6e 6c 69 6e 65 |eskHook;|..inline|
|00000d50| 0d 09 20 24 34 32 42 38 | 2c 20 24 30 41 36 43 3b |.. $42B8|, $0A6C;|
|00000d60| 09 09 7b 20 43 4c 52 2e | 4c 20 24 41 36 43 20 3b |..{ CLR.|L $A6C ;|
|00000d70| 20 44 65 73 6b 48 6f 6f | 6b 20 7d 0d 49 74 20 64 | DeskHoo|k }.It d|
|00000d80| 6f 65 73 6e d5 74 20 68 | 75 72 74 20 74 6f 20 63 |oesn.t h|urt to c|
|00000d90| 6c 65 61 72 20 69 74 20 | 6f 6e 20 6e 65 77 65 72 |lear it |on newer|
|00000da0| 20 6d 61 63 68 69 6e 65 | 73 20 65 69 74 68 65 72 | machine|s either|
|00000db0| 2c 20 65 76 65 6e 20 69 | 66 20 69 74 20 69 73 20 |, even i|f it is |
|00000dc0| 61 6c 72 65 61 64 79 20 | 63 6c 65 61 72 20 28 79 |already |clear (y|
|00000dd0| 6f 75 d5 6c 6c 20 6a 75 | 73 74 20 68 61 76 65 20 |ou.ll ju|st have |
|00000de0| 74 6f 20 74 72 75 73 74 | 20 6d 65 20 6f 6e 20 74 |to trust| me on t|
|00000df0| 68 69 73 20 6f 6e 65 29 | 2c 20 73 6f 20 67 6f 20 |his one)|, so go |
|00000e00| 61 68 65 61 64 20 61 6e | 64 20 63 6c 65 61 72 20 |ahead an|d clear |
|00000e10| 69 74 20 61 6c 6c 20 74 | 68 65 20 74 69 6d 65 2e |it all t|he time.|
|00000e20| 0d 4e 6f 74 65 3a 09 53 | 6f 6d 65 20 49 4e 49 54 |.Note:.S|ome INIT|
|00000e30| 73 20 6d 69 67 68 74 20 | 61 63 74 75 61 6c 6c 79 |s might |actually|
|00000e40| 20 75 73 65 20 44 65 73 | 6b 48 6f 6f 6b 2e 20 20 | use Des|kHook. |
|00000e50| 48 6f 77 65 76 65 72 2c | 20 74 68 65 20 70 6f 70 |However,| the pop|
|00000e60| 75 6c 61 72 20 6f 6e 65 | 73 20 74 68 61 74 20 70 |ular one|s that p|
|00000e70| 61 69 6e 74 20 61 20 70 | 69 63 74 75 72 65 20 6f |aint a p|icture o|
|00000e80| 6e 20 74 68 65 20 64 65 | 73 6b 74 6f 70 2c 20 77 |n the de|sktop, w|
|00000e90| 68 69 63 68 20 79 6f 75 | 20 6d 69 67 68 74 20 74 |hich you| might t|
|00000ea0| 68 69 6e 6b 20 75 73 65 | 20 69 74 2c 20 64 6f 20 |hink use| it, do |
|00000eb0| 6e 6f 74 2e 20 20 54 68 | 65 79 20 75 73 65 20 6f |not. Th|ey use o|
|00000ec0| 74 68 65 72 20 6d 65 74 | 68 6f 64 73 2e 20 20 28 |ther met|hods. (|
|00000ed0| 57 65 20 6b 6e 6f 77 2c | 20 77 65 20 63 68 65 63 |We know,| we chec|
|00000ee0| 6b 65 64 2e 20 20 57 65 | 20 68 61 76 65 20 74 68 |ked. We| have th|
|00000ef0| 65 20 74 65 63 68 6e 6f | 6c 6f 67 79 2e 29 20 20 |e techno|logy.) |
|00000f00| 46 6f 72 20 74 68 6f 73 | 65 20 6f 66 20 79 6f 75 |For thos|e of you|
|00000f10| 20 77 68 6f 20 68 61 76 | 65 20 73 65 65 6e 20 61 | who hav|e seen a|
|00000f20| 20 72 65 61 6c 20 70 72 | 6f 63 65 64 75 72 65 20 | real pr|ocedure |
|00000f30| 70 6f 69 6e 74 65 72 20 | 69 6e 20 6c 6f 63 61 74 |pointer |in locat|
|00000f40| 69 6f 6e 20 24 41 36 43 | 20 6f 6e 20 65 61 72 6c |ion $A6C| on earl|
|00000f50| 69 65 72 20 4d 61 63 69 | 6e 74 6f 73 68 65 73 2c |ier Maci|ntoshes,|
|00000f60| 20 64 6f 6e d5 74 20 77 | 6f 72 72 79 2e 20 20 54 | don.t w|orry. T|
|00000f70| 68 65 20 73 79 73 74 65 | 6d 20 64 6f 65 73 20 6e |he syste|m does n|
|00000f80| 6f 74 20 61 63 74 75 61 | 6c 6c 79 20 73 65 74 20 |ot actua|lly set |
|00000f90| 44 65 73 6b 48 6f 6f 6b | 20 66 6f 72 20 69 74 73 |DeskHook| for its|
|00000fa0| 20 6f 77 6e 20 75 73 65 | 20 75 6e 74 69 6c 20 74 | own use| until t|
|00000fb0| 68 65 20 66 69 72 73 74 | 20 61 70 70 6c 69 63 61 |he first| applica|
|00000fc0| 74 69 6f 6e 20 6c 6f 61 | 64 73 2c 20 73 6f 20 63 |tion loa|ds, so c|
|00000fd0| 6c 65 61 72 69 6e 67 20 | 69 74 20 77 68 69 6c 65 |learing |it while|
|00000fe0| 20 49 4e 49 54 73 20 6c | 6f 61 64 20 69 73 20 6f | INITs l|oad is o|
|00000ff0| 6b 61 79 2e 0d 09 49 66 | 20 74 68 65 72 65 20 69 |kay...If| there i|
|00001000| 73 20 73 6f 6d 65 20 64 | 61 72 69 6e 67 20 49 4e |s some d|aring IN|
|00001010| 49 54 20 6f 75 74 20 74 | 68 65 72 65 20 77 68 69 |IT out t|here whi|
|00001020| 63 68 20 73 65 74 73 20 | 44 65 73 6b 48 6f 6f 6b |ch sets |DeskHook|
|00001030| 2c 20 77 65 20 68 61 76 | 65 6e d5 74 20 68 65 61 |, we hav|en.t hea|
|00001040| 72 64 20 61 62 6f 75 74 | 20 69 74 2e 20 20 41 73 |rd about| it. As|
|00001050| 20 69 73 20 74 68 65 20 | 63 61 73 65 20 77 69 74 | is the |case wit|
|00001060| 68 20 6d 61 6e 79 20 6c | 6f 77 2d 6d 65 6d 6f 72 |h many l|ow-memor|
|00001070| 79 20 67 6c 6f 62 61 6c | 73 2c 20 75 73 69 6e 67 |y global|s, using|
|00001080| 20 44 65 73 6b 48 6f 6f | 6b 20 68 61 73 20 6e 65 | DeskHoo|k has ne|
|00001090| 76 65 72 20 62 65 65 6e | 20 73 75 70 70 6f 72 74 |ver been| support|
|000010a0| 65 64 2e 0d 57 61 74 63 | 68 20 4f 75 74 20 46 6f |ed..Watc|h Out Fo|
|000010b0| 72 20 54 68 69 73 20 47 | 75 79 20 54 6f 6f 0d 49 |r This G|uy Too.I|
|000010c0| 74 20 73 68 6f 75 6c 64 | 20 61 6c 73 6f 20 62 65 |t should| also be|
|000010d0| 20 6e 6f 74 65 64 20 74 | 68 61 74 20 44 72 61 67 | noted t|hat Drag|
|000010e0| 48 6f 6f 6b 20 28 24 39 | 46 36 29 20 69 73 20 6e |Hook ($9|F6) is n|
|000010f0| 6f 74 20 63 6c 65 61 72 | 65 64 20 64 75 72 69 6e |ot clear|ed durin|
|00001100| 67 20 49 4e 49 54 20 74 | 69 6d 65 20 6f 6e 20 65 |g INIT t|ime on e|
|00001110| 61 72 6c 79 20 4d 61 63 | 69 6e 74 6f 73 68 65 73 |arly Mac|intoshes|
|00001120| 20 65 69 74 68 65 72 2c | 20 61 6e 64 20 69 74 20 | either,| and it |
|00001130| 77 69 6c 6c 20 70 72 6f | 62 61 62 6c 79 20 63 6f |will pro|bably co|
|00001140| 6e 74 61 69 6e 20 24 46 | 46 46 46 46 46 46 46 2e |ntain $F|FFFFFFF.|
|00001150| 20 20 49 20 67 75 65 73 | 73 20 6e 6f 20 6f 6e 65 | I gues|s no one|
|00001160| 20 69 6e 20 65 61 72 6c | 79 20 4d 61 63 69 6e 74 | in earl|y Macint|
|00001170| 6f 73 68 20 53 79 73 74 | 65 6d 20 53 6f 66 74 77 |osh Syst|em Softw|
|00001180| 61 72 65 20 77 61 6e 74 | 65 64 20 44 65 73 6b 48 |are want|ed DeskH|
|00001190| 6f 6f 6b 20 74 6f 20 62 | 65 20 6c 6f 6e 65 6c 79 |ook to b|e lonely|
|000011a0| 2e 20 20 44 72 61 67 48 | 6f 6f 6b 20 63 61 6e 20 |. DragH|ook can |
|000011b0| 63 6f 6e 74 61 69 6e 20 | 61 20 70 6f 69 6e 74 65 |contain |a pointe|
|000011c0| 72 20 74 6f 20 61 20 70 | 72 6f 63 65 64 75 72 65 |r to a p|rocedure|
|000011d0| 20 74 68 61 74 20 69 73 | 20 63 61 6c 6c 65 64 20 | that is| called |
|000011e0| 63 6f 6e 74 69 6e 75 6f | 75 73 6c 79 20 77 68 69 |continuo|usly whi|
|000011f0| 6c 65 20 74 68 65 20 6d | 6f 75 73 65 20 62 75 74 |le the m|ouse but|
|00001200| 74 6f 6e 20 69 73 20 64 | 6f 77 6e 2e 20 20 49 66 |ton is d|own. If|
|00001210| 20 79 6f 75 20 68 61 76 | 65 20 61 20 75 73 65 72 | you hav|e a user|
|00001220| 20 69 6e 74 65 72 66 61 | 63 65 20 61 74 20 49 4e | interfa|ce at IN|
|00001230| 49 54 20 74 69 6d 65 20 | 74 68 61 74 20 75 6c 74 |IT time |that ult|
|00001240| 69 6d 61 74 65 6c 79 20 | 63 61 6c 6c 73 20 5f 54 |imately |calls _T|
|00001250| 72 61 63 6b 47 6f 41 77 | 61 79 20 66 6f 72 20 77 |rackGoAw|ay for w|
|00001260| 69 6e 64 6f 77 73 20 6f | 72 20 5f 54 72 61 63 6b |indows o|r _Track|
|00001270| 43 6f 6e 74 72 6f 6c 20 | 66 6f 72 20 63 6f 6e 74 |Control |for cont|
|00001280| 72 6f 6c 73 2c 20 6c 6f | 6f 6b 20 6f 75 74 2e 20 |rols, lo|ok out. |
|00001290| 20 49 66 20 74 68 65 20 | 63 6f 6e 74 72 6f 6c 20 | If the |control |
|000012a0| 69 73 20 6f 66 20 74 68 | 65 20 74 79 70 65 20 74 |is of th|e type t|
|000012b0| 6f 20 61 6c 6c 6f 77 20 | 6f 6e 65 20 6f 66 20 69 |o allow |one of i|
|000012c0| 74 d5 73 20 70 61 72 74 | 73 20 74 6f 20 62 65 20 |t.s part|s to be |
|000012d0| 64 72 61 67 67 65 64 20 | 77 69 74 68 20 61 6e 20 |dragged |with an |
|000012e0| 6f 75 74 6c 69 6e 65 2c | 20 6c 69 6b 65 20 61 20 |outline,| like a |
|000012f0| 73 63 72 6f 6c 6c 20 62 | 61 72 d5 73 20 74 68 75 |scroll b|ar.s thu|
|00001300| 6d 62 2c 20 69 74 20 63 | 61 6c 6c 73 20 5f 44 72 |mb, it c|alls _Dr|
|00001310| 61 67 54 68 65 52 67 6e | 2c 20 77 68 69 63 68 20 |agTheRgn|, which |
|00001320| 63 68 65 63 6b 73 20 74 | 6f 20 73 65 65 20 69 66 |checks t|o see if|
|00001330| 20 44 72 61 67 48 6f 6f | 6b 20 69 73 20 4e 49 4c | DragHoo|k is NIL|
|00001340| 2c 20 61 6e 64 20 69 66 | 20 69 74 20 69 73 20 6e |, and if| it is n|
|00001350| 6f 74 2c 20 69 74 20 74 | 72 69 65 73 20 74 6f 20 |ot, it t|ries to |
|00001360| 70 65 72 66 6f 72 6d 20 | 61 20 4a 53 52 20 74 6f |perform |a JSR to|
|00001370| 20 77 68 61 74 65 76 65 | 72 20 61 64 64 72 65 73 | whateve|r addres|
|00001380| 73 20 69 73 20 74 68 65 | 72 65 2e 20 20 5f 54 72 |s is the|re. _Tr|
|00001390| 61 63 6b 47 6f 41 77 61 | 79 20 61 6c 73 6f 20 74 |ackGoAwa|y also t|
|000013a0| 72 69 65 73 20 74 6f 20 | 70 65 72 66 6f 72 6d 20 |ries to |perform |
|000013b0| 61 20 4a 53 52 20 74 6f | 20 74 68 61 74 20 61 64 |a JSR to| that ad|
|000013c0| 64 72 65 73 73 20 69 66 | 20 69 74 d5 73 20 6e 6f |dress if| it.s no|
|000013d0| 74 20 4e 49 4c 2e 20 20 | 53 6f 20 6d 61 6b 65 20 |t NIL. |So make |
|000013e0| 73 75 72 65 20 44 72 61 | 67 48 6f 6f 6b 20 69 73 |sure Dra|gHook is|
|000013f0| 20 63 6c 65 61 72 20 62 | 65 66 6f 72 65 20 79 6f | clear b|efore yo|
|00001400| 75 20 61 74 74 65 6d 70 | 74 20 74 6f 20 75 73 65 |u attemp|t to use|
|00001410| 20 6f 6e 65 20 6f 66 20 | 74 68 65 73 65 20 72 6f | one of |these ro|
|00001420| 75 74 69 6e 65 73 2e 0d | 49 6e 20 66 61 63 74 2c |utines..|In fact,|
|00001430| 20 69 66 20 79 6f 75 d5 | 76 65 20 67 6f 74 20 61 | if you.|ve got a|
|00001440| 20 6c 6f 74 20 6f 66 20 | 73 70 61 72 65 20 74 69 | lot of |spare ti|
|00001450| 6d 65 2c 20 6c 69 6b 65 | 20 79 6f 75 d5 72 65 20 |me, like| you.re |
|00001460| 6f 6e 20 74 68 65 20 56 | 6f 79 61 67 65 72 20 37 |on the V|oyager 7|
|00001470| 20 70 72 6f 6a 65 63 74 | 20 77 61 69 74 69 6e 67 | project| waiting|
|00001480| 20 74 6f 20 63 6f 6d 65 | 20 69 6e 74 6f 20 63 6f | to come| into co|
|00001490| 6e 74 61 63 74 20 77 69 | 74 68 20 42 6c 61 63 6b |ntact wi|th Black|
|000014a0| 20 4c 65 63 74 72 6f 69 | 64 73 20 61 6e 64 20 79 | Lectroi|ds and y|
|000014b0| 6f 75 20 68 61 76 65 20 | 61 6e 20 6f 6c 64 20 4d |ou have |an old M|
|000014c0| 61 63 69 6e 74 6f 73 68 | 20 35 31 32 4b 45 20 6f |acintosh| 512KE o|
|000014d0| 72 20 50 6c 75 73 20 6c | 79 69 6e 67 20 61 72 6f |r Plus l|ying aro|
|000014e0| 75 6e 64 2c 20 77 68 79 | 20 6e 6f 74 20 74 72 79 |und, why| not try|
|000014f0| 20 72 61 6e 64 6f 6d 6c | 79 20 63 6c 65 61 72 69 | randoml|y cleari|
|00001500| 6e 67 20 6f 75 74 20 61 | 6c 6c 20 6c 6f 77 2d 6d |ng out a|ll low-m|
|00001510| 65 6d 6f 72 79 20 67 6c | 6f 62 61 6c 73 20 61 6e |emory gl|obals an|
|00001520| 64 20 73 65 65 20 77 68 | 61 74 20 64 6f 65 73 20 |d see wh|at does |
|00001530| 61 6e 64 20 64 6f 65 73 | 6e d5 74 20 63 72 61 73 |and does|n.t cras|
|00001540| 68 3f 20 20 53 75 72 65 | 20 74 6f 20 62 65 20 61 |h? Sure| to be a|
|00001550| 6e 20 69 63 65 20 62 72 | 65 61 6b 65 72 20 61 74 |n ice br|eaker at|
|00001560| 20 70 61 72 74 69 65 73 | 2e 0d 2a 20 28 41 73 74 | parties|..* (Ast|
|00001570| 65 72 69 73 6b 29 0d 57 | 68 61 74 20 61 6d 20 49 |erisk).W|hat am I|
|00001580| 20 79 61 6b 6b 69 6e 67 | 20 61 62 6f 75 74 3f 20 | yakking| about? |
|00001590| 20 49 66 20 79 6f 75 d5 | 76 65 20 65 76 65 72 20 | If you.|ve ever |
|000015a0| 77 72 69 74 74 65 6e 20 | 74 6f 20 44 54 53 20 61 |written |to DTS a|
|000015b0| 62 6f 75 74 20 67 65 74 | 74 69 6e 67 20 68 65 6c |bout get|ting hel|
|000015c0| 70 20 77 69 74 68 20 64 | 69 73 70 6c 61 79 69 6e |p with d|isplayin|
|000015d0| 67 20 73 6f 6d 65 20 6b | 69 6e 64 20 6f 66 20 6d |g some k|ind of m|
|000015e0| 6f 64 61 6c 20 6d 6f 6e | 73 74 65 72 20 61 74 20 |odal mon|ster at |
|000015f0| 49 4e 49 54 20 74 69 6d | 65 20 28 72 65 6d 65 6d |INIT tim|e (remem|
|00001600| 62 65 72 20 74 68 69 73 | 20 66 6f 72 20 74 68 65 |ber this| for the|
|00001610| 20 6c 61 74 65 72 20 71 | 75 69 7a 20 6b 69 64 73 | later q|uiz kids|
|00001620| 2c 20 74 68 61 74 d5 73 | 20 74 68 65 20 74 69 6d |, that.s| the tim|
|00001630| 65 20 62 65 66 6f 72 65 | 20 74 68 69 73 20 73 6f |e before| this so|
|00001640| 72 74 20 6f 66 20 74 68 | 69 6e 67 20 73 68 6f 75 |rt of th|ing shou|
|00001650| 6c 64 20 6e 6f 72 6d 61 | 6c 6c 79 20 68 61 70 70 |ld norma|lly happ|
|00001660| 65 6e 29 2c 20 79 6f 75 | 20 6b 6e 6f 77 20 6f 66 |en), you| know of|
|00001670| 20 77 68 61 74 20 49 20 | 79 61 6b 2e 0d 57 65 20 | what I |yak..We |
|00001680| 68 61 76 65 20 74 68 69 | 73 20 70 65 74 20 70 65 |have thi|s pet pe|
|00001690| 65 76 65 20 77 69 74 68 | 20 49 4e 49 54 73 20 74 |eve with| INITs t|
|000016a0| 68 61 74 20 69 6e 74 65 | 72 72 75 70 74 20 74 68 |hat inte|rrupt th|
|000016b0| 65 20 62 6f 6f 74 20 70 | 72 6f 63 65 73 73 20 77 |e boot p|rocess w|
|000016c0| 69 74 68 20 61 20 6d 6f | 64 61 6c 20 64 69 61 6c |ith a mo|dal dial|
|000016d0| 6f 67 20 62 6f 78 20 77 | 68 69 63 68 20 61 73 6b |og box w|hich ask|
|000016e0| 73 20 75 73 20 74 6f 20 | 65 6e 74 65 72 20 6f 75 |s us to |enter ou|
|000016f0| 72 20 6e 61 6d 65 20 74 | 68 65 6e 20 70 72 6f 63 |r name t|hen proc|
|00001700| 65 65 64 73 20 74 6f 20 | 61 73 6b 20 75 73 20 68 |eeds to |ask us h|
|00001710| 6f 77 20 6d 61 6e 79 20 | 63 68 61 72 61 63 74 65 |ow many |characte|
|00001720| 72 73 20 77 65 20 6a 75 | 73 74 20 65 6e 74 65 72 |rs we ju|st enter|
|00001730| 65 64 20 61 6e 64 20 77 | 68 61 74 20 77 65 20 68 |ed and w|hat we h|
|00001740| 61 64 20 66 6f 72 20 64 | 69 6e 6e 65 72 2c 20 65 |ad for d|inner, e|
|00001750| 73 70 65 63 69 61 6c 6c | 79 20 77 68 65 6e 20 77 |speciall|y when w|
|00001760| 65 d5 76 65 20 6c 65 66 | 74 20 74 68 65 20 64 65 |e.ve lef|t the de|
|00001770| 73 6b 20 74 6f 20 67 6f | 20 67 65 74 20 61 20 66 |sk to go| get a f|
|00001780| 69 78 20 6f 66 20 61 20 | 68 69 67 68 6c 79 20 63 |ix of a |highly c|
|00001790| 61 66 66 65 69 6e 61 74 | 65 64 20 73 75 62 73 74 |affeinat|ed subst|
|000017a0| 61 6e 63 65 2e 20 20 49 | 4e 49 54 73 20 77 65 72 |ance. I|NITs wer|
|000017b0| 65 20 63 72 65 61 74 65 | 64 20 66 6f 72 20 64 65 |e create|d for de|
|000017c0| 76 65 6c 6f 70 65 72 73 | 20 28 61 6e 64 20 75 73 |velopers| (and us|
|000017d0| 29 20 74 6f 20 69 6e 73 | 74 61 6c 6c 20 73 79 73 |) to ins|tall sys|
|000017e0| 74 65 6d 20 70 61 74 63 | 68 65 73 20 61 6e 64 20 |tem patc|hes and |
|000017f0| 64 65 76 69 63 65 20 64 | 72 69 76 65 72 73 20 61 |device d|rivers a|
|00001800| 6e 64 20 6d 61 6b 65 20 | 74 68 65 20 6f 63 63 61 |nd make |the occa|
|00001810| 73 69 6f 6e 61 6c 20 72 | 75 64 65 20 73 74 61 72 |sional r|ude star|
|00001820| 74 75 70 20 73 6f 75 6e | 64 20 74 6f 20 61 6e 6e |tup soun|d to ann|
|00001830| 6f 79 20 74 68 65 20 70 | 65 72 73 6f 6e 20 6f 63 |oy the p|erson oc|
|00001840| 63 75 70 79 69 6e 67 20 | 74 68 65 20 63 75 62 65 |cupying |the cube|
|00001850| 20 6e 65 78 74 20 74 6f | 20 6f 75 72 73 2e 20 20 | next to| ours. |
|00001860| 49 4e 49 54 73 20 77 65 | 72 65 20 6e 6f 74 20 64 |INITs we|re not d|
|00001870| 65 76 65 6c 6f 70 65 64 | 20 74 6f 20 61 73 6b 20 |eveloped| to ask |
|00001880| 66 6f 72 20 70 65 72 73 | 6f 6e 61 6c 20 28 61 73 |for pers|onal (as|
|00001890| 65 78 75 61 6c 29 20 68 | 69 73 74 6f 72 69 65 73 |exual) h|istories|
|000018a0| 2e 0d 57 65 20 64 6f 20 | 6e 6f 74 20 6d 65 61 6e |..We do |not mean|
|000018b0| 20 74 6f 20 73 61 79 20 | 74 68 61 74 20 77 65 20 | to say |that we |
|000018c0| 64 6f 6e d5 74 20 6c 69 | 6b 65 20 61 6c 6c 20 67 |don.t li|ke all g|
|000018d0| 72 61 70 68 69 63 73 20 | 61 74 20 62 6f 6f 74 20 |raphics |at boot |
|000018e0| 74 69 6d 65 2e 20 20 54 | 68 65 20 53 68 6f 77 49 |time. T|he ShowI|
|000018f0| 4e 49 54 20 69 63 6f 6e | 20 6d 65 63 68 61 6e 69 |NIT icon| mechani|
|00001900| 73 6d 20 74 68 61 74 20 | 77 61 73 20 70 6f 70 75 |sm that |was popu|
|00001910| 6c 61 72 69 7a 65 64 20 | 62 79 20 50 61 75 6c 20 |larized |by Paul |
|00001920| 4d 65 72 63 65 72 20 69 | 73 20 67 72 65 61 74 2e |Mercer i|s great.|
|00001930| 20 20 49 6e 20 66 61 63 | 74 2c 20 77 65 20 65 6e | In fac|t, we en|
|00001940| 63 6f 75 72 61 67 65 20 | 69 74 d5 73 20 75 73 65 |courage |it.s use|
|00001950| 20 61 6e 64 20 77 65 20 | 67 6c 61 64 6c 79 20 67 | and we |gladly g|
|00001960| 69 76 65 20 6f 75 74 20 | 74 68 65 20 53 68 6f 77 |ive out |the Show|
|00001970| 49 4e 49 54 20 4d 50 57 | 20 6f 62 6a 65 63 74 20 |INIT MPW| object |
|00001980| 66 69 6c 65 2c 20 77 69 | 74 68 20 69 6e 73 74 61 |file, wi|th insta|
|00001990| 6c 6c 61 74 69 6f 6e 20 | 68 65 6c 70 2c 20 74 6f |llation |help, to|
|000019a0| 20 61 6e 79 6f 6e 65 20 | 77 68 6f 20 61 73 6b 73 | anyone |who asks|
|000019b0| 20 66 6f 72 20 69 74 2e | 20 20 54 68 69 73 20 69 | for it.| This i|
|000019c0| 73 20 61 6e 20 65 78 63 | 65 6c 6c 65 6e 74 20 6d |s an exc|ellent m|
|000019d0| 65 74 68 6f 64 20 66 6f | 72 20 61 20 64 65 76 65 |ethod fo|r a deve|
|000019e0| 6c 6f 70 65 72 20 74 6f | 20 69 6e 66 6f 72 6d 20 |loper to| inform |
|000019f0| 61 20 75 73 65 72 20 77 | 68 65 74 68 65 72 20 61 |a user w|hether a|
|00001a00| 20 52 4f 4d 20 70 61 74 | 63 68 20 6f 72 20 64 65 | ROM pat|ch or de|
|00001a10| 76 69 63 65 20 64 72 69 | 76 65 72 20 68 61 73 20 |vice dri|ver has |
|00001a20| 62 65 65 6e 20 73 75 63 | 63 65 73 73 66 75 6c 6c |been suc|cessfull|
|00001a30| 79 20 69 6e 73 74 61 6c | 6c 65 64 20 28 73 68 6f |y instal|led (sho|
|00001a40| 77 20 74 68 65 20 72 65 | 64 20 58 20 74 68 72 6f |w the re|d X thro|
|00001a50| 75 67 68 20 74 68 65 20 | 69 63 6f 6e 20 6f 6e 20 |ugh the |icon on |
|00001a60| 74 68 65 20 72 61 72 65 | 20 6f 63 63 61 73 69 6f |the rare| occasio|
|00001a70| 6e 20 77 68 65 6e 20 74 | 68 69 6e 67 73 20 67 6f |n when t|hings go|
|00001a80| 20 77 72 6f 6e 67 29 2e | 20 20 4f 66 20 63 6f 75 | wrong).| Of cou|
|00001a90| 72 73 65 2c 20 74 68 69 | 73 20 64 6f 65 73 6e d5 |rse, thi|s doesn.|
|00001aa0| 74 20 77 6f 72 6b 20 69 | 66 20 73 6f 6d 65 20 6e |t work i|f some n|
|00001ab0| 6f 6e 2d 73 6f 63 69 61 | 6c 20 49 4e 49 54 20 6d |on-socia|l INIT m|
|00001ac0| 61 6b 65 73 20 61 6e 20 | 5f 49 6e 69 74 57 69 6e |akes an |_InitWin|
|00001ad0| 64 6f 77 73 20 63 61 6c | 6c 2c 20 77 68 69 63 68 |dows cal|l, which|
|00001ae0| 20 77 69 70 65 73 20 63 | 6c 65 61 6e 20 74 68 65 | wipes c|lean the|
|00001af0| 20 65 6e 74 69 72 65 20 | 73 63 72 65 65 6e 20 28 | entire |screen (|
|00001b00| 61 6e 64 20 77 69 74 68 | 20 69 74 20 61 6c 6c 20 |and with| it all |
|00001b10| 70 72 65 76 69 6f 75 73 | 20 53 68 6f 77 49 4e 49 |previous| ShowINI|
|00001b20| 54 20 69 63 6f 6e 73 29 | 2e 20 20 59 6f 75 20 6d |T icons)|. You m|
|00001b30| 61 79 20 61 72 67 75 65 | 20 74 68 61 74 20 68 61 |ay argue| that ha|
|00001b40| 76 69 6e 67 20 74 68 65 | 20 5f 49 6e 69 74 57 69 |ving the| _InitWi|
|00001b50| 6e 64 6f 77 73 20 74 72 | 61 70 20 77 69 70 65 20 |ndows tr|ap wipe |
|00001b60| 6f 75 74 20 74 68 65 20 | 65 6e 74 69 72 65 20 73 |out the |entire s|
|00001b70| 63 72 65 65 6e 20 61 74 | 20 49 4e 49 54 20 74 69 |creen at| INIT ti|
|00001b80| 6d 65 20 69 73 20 61 20 | 62 61 64 20 4d 61 63 69 |me is a |bad Maci|
|00001b90| 6e 74 6f 73 68 20 4f 53 | 20 49 4e 49 54 2d 74 69 |ntosh OS| INIT-ti|
|00001ba0| 6d 65 20 64 65 73 69 67 | 6e 2c 20 62 75 74 20 74 |me desig|n, but t|
|00001bb0| 68 69 73 20 69 73 20 6f | 6e 65 20 6f 66 20 6f 75 |his is o|ne of ou|
|00001bc0| 72 20 62 69 67 67 65 73 | 74 20 63 6f 6d 70 6c 61 |r bigges|t compla|
|00001bd0| 69 6e 74 73 20 77 69 74 | 68 20 74 68 65 20 77 68 |ints wit|h the wh|
|00001be0| 6f 6c 65 20 49 4e 49 54 | 20 6c 6f 6f 6b 2d 61 74 |ole INIT| look-at|
|00001bf0| 2d 6d 79 2d 66 61 6e 63 | 79 2d 73 70 6c 61 73 68 |-my-fanc|y-splash|
|00001c00| 2d 73 63 72 65 65 6e 2d | 6f 72 2d 63 6f 6d 70 6c |-screen-|or-compl|
|00001c10| 65 74 65 2d 6d 79 2d 69 | 6e 73 61 6e 65 6c 79 2d |ete-my-i|nsanely-|
|00001c20| 67 72 65 61 74 2d 6d 6f | 64 61 6c 2d 64 69 61 6c |great-mo|dal-dial|
|00001c30| 6f 67 2d 62 6f 78 20 70 | 68 65 6e 6f 6d 65 6e 6f |og-box p|henomeno|
|00001c40| 6e 2e 0d 49 66 20 79 6f | 75 20 66 65 65 6c 20 74 |n..If yo|u feel t|
|00001c50| 68 65 20 6e 65 65 64 20 | 74 6f 20 6e 6f 74 69 66 |he need |to notif|
|00001c60| 79 20 74 68 65 20 75 73 | 65 72 20 6f 66 20 61 6e |y the us|er of an|
|00001c70| 20 69 6d 70 6f 72 74 61 | 6e 74 20 6f 63 63 75 72 | importa|nt occur|
|00001c80| 72 65 6e 63 65 20 64 75 | 72 69 6e 67 20 62 6f 6f |rence du|ring boo|
|00001c90| 74 20 74 69 6d 65 2c 20 | 69 6e 69 74 69 61 6c 69 |t time, |initiali|
|00001ca0| 7a 65 20 61 20 6e 6f 74 | 69 66 69 63 61 74 69 6f |ze a not|ificatio|
|00001cb0| 6e 20 72 65 71 75 65 73 | 74 20 77 69 74 68 20 74 |n reques|t with t|
|00001cc0| 68 65 20 4e 6f 74 69 66 | 69 63 61 74 69 6f 6e 20 |he Notif|ication |
|00001cd0| 4d 61 6e 61 67 65 72 20 | 69 6e 20 79 6f 75 72 20 |Manager |in your |
|00001ce0| 49 4e 49 54 20 63 6f 64 | 65 20 28 73 65 65 20 4d |INIT cod|e (see M|
|00001cf0| 2e 54 42 2e 4e 6f 74 69 | 66 69 63 61 74 69 6f 6e |.TB.Noti|fication|
|00001d00| 20 4d 61 6e 61 67 65 72 | 2c 20 61 6e 64 20 79 65 | Manager|, and ye|
|00001d10| 73 2c 20 69 74 20 69 73 | 20 70 65 72 66 65 63 74 |s, it is| perfect|
|00001d20| 6c 79 20 6c 65 67 61 6c | 20 74 6f 20 75 73 65 20 |ly legal| to use |
|00001d30| 61 74 20 49 4e 49 54 20 | 74 69 6d 65 29 2c 20 61 |at INIT |time), a|
|00001d40| 6e 64 20 74 68 65 20 73 | 79 73 74 65 6d 20 77 69 |nd the s|ystem wi|
|00001d50| 6c 6c 20 6e 6f 74 69 66 | 79 20 74 68 65 20 75 73 |ll notif|y the us|
|00001d60| 65 72 20 61 66 74 65 72 | 20 74 68 65 20 62 6f 6f |er after| the boo|
|00001d70| 74 20 70 72 6f 63 65 73 | 73 2c 20 77 68 65 6e 20 |t proces|s, when |
|00001d80| 74 68 65 20 65 76 65 6e | 74 20 6d 65 63 68 61 6e |the even|t mechan|
|00001d90| 69 73 6d 20 73 74 61 72 | 74 73 2e 20 20 54 68 65 |ism star|ts. The|
|00001da0| 20 6e 6f 77 20 61 6c 65 | 72 74 65 64 20 75 73 65 | now ale|rted use|
|00001db0| 72 20 63 61 6e 20 74 68 | 65 6e 20 61 63 74 69 76 |r can th|en activ|
|00001dc0| 61 74 65 20 79 6f 75 72 | 20 64 65 73 6b 20 61 63 |ate your| desk ac|
|00001dd0| 63 65 73 73 6f 72 79 2c | 20 61 70 70 6c 69 63 61 |cessory,| applica|
|00001de0| 74 69 6f 6e 2c 20 6f 72 | 20 77 68 61 74 65 76 65 |tion, or| whateve|
|00001df0| 72 20 61 6e 64 20 79 6f | 75 20 63 61 6e 20 70 65 |r and yo|u can pe|
|00001e00| 72 66 6f 72 6d 20 77 68 | 61 74 65 76 65 72 20 6b |rform wh|atever k|
|00001e10| 69 6e 64 20 6f 66 20 70 | 79 72 6f 74 65 63 68 6e |ind of p|yrotechn|
|00001e20| 69 63 73 20 79 6f 75 20 | 77 61 6e 74 2e 0d 49 66 |ics you |want..If|
|00001e30| 20 79 6f 75 20 61 72 65 | 20 67 6f 69 6e 67 2c 20 | you are| going, |
|00001e40| d2 42 75 74 2c 20 62 75 | 74 2c 20 62 75 74 c9 d3 |.But, bu|t, but..|
|00001e50| 20 62 65 63 61 75 73 65 | 20 76 61 72 69 6f 75 73 | because| various|
|00001e60| 20 41 70 70 6c 65 20 70 | 72 6f 64 75 63 74 73 20 | Apple p|roducts |
|00001e70| 61 72 65 20 67 75 69 6c | 74 79 20 6f 66 20 49 4e |are guil|ty of IN|
|00001e80| 49 54 20 65 76 69 6c 73 | 2c 20 74 68 65 6e 20 79 |IT evils|, then y|
|00001e90| 6f 75 20 73 68 6f 75 6c | 64 20 72 65 61 6c 69 7a |ou shoul|d realiz|
|00001ea0| 65 20 74 68 61 74 20 77 | 65 20 61 72 65 20 67 69 |e that w|e are gi|
|00001eb0| 76 69 6e 67 20 41 70 70 | 6c 65 20 65 6e 67 69 6e |ving App|le engin|
|00001ec0| 65 65 72 73 20 74 68 65 | 20 73 61 6d 65 2c 20 69 |eers the| same, i|
|00001ed0| 66 20 6e 6f 74 20 6d 6f | 72 65 2c 20 67 72 69 65 |f not mo|re, grie|
|00001ee0| 66 20 74 6f 20 63 6c 65 | 61 6e 73 65 20 74 68 65 |f to cle|anse the|
|00001ef0| 69 72 20 61 63 74 73 20 | 61 73 20 77 65 6c 6c 2e |ir acts |as well.|
|00001f00| 0d 49 74 d5 73 20 6e 6f | 74 20 74 68 61 74 20 77 |.It.s no|t that w|
|00001f10| 65 d5 72 65 20 74 65 6c | 6c 69 6e 67 20 79 6f 75 |e.re tel|ling you|
|00001f20| 20 74 68 61 74 20 79 6f | 75 20 63 61 6e 6e 6f 74 | that yo|u cannot|
|00001f30| 20 70 75 74 20 75 70 20 | 61 20 6d 6f 64 61 6c 20 | put up |a modal |
|00001f40| 64 69 61 6c 6f 67 20 62 | 6f 78 20 61 74 20 49 4e |dialog b|ox at IN|
|00001f50| 49 54 20 74 69 6d 65 20 | 69 66 20 79 6f 75 20 66 |IT time |if you f|
|00001f60| 65 65 6c 20 6c 69 6b 65 | 20 69 74 d5 73 20 72 65 |eel like| it.s re|
|00001f70| 61 6c 6c 79 2d 61 62 73 | 6f 6c 75 74 65 6c 79 2d |ally-abs|olutely-|
|00001f80| 70 6f 73 69 74 69 76 65 | 6c 79 2d 69 74 2d 77 61 |positive|ly-it-wa|
|00001f90| 73 2d 79 6f 75 72 2d 64 | 79 69 6e 67 2d 6d 6f 74 |s-your-d|ying-mot|
|00001fa0| 68 65 72 d5 73 20 6c 61 | 73 74 2d 77 69 73 68 2d |her.s la|st-wish-|
|00001fb0| 6e 65 63 65 73 73 61 72 | 79 2e 20 20 49 74 d5 73 |necessar|y. It.s|
|00001fc0| 20 6a 75 73 74 20 74 68 | 61 74 20 44 54 53 20 77 | just th|at DTS w|
|00001fd0| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 73 65 65 |ould lik|e to see|
|00001fe0| 20 61 20 63 6c 65 61 6e | 65 72 20 4d 61 63 69 6e | a clean|er Macin|
|00001ff0| 74 6f 73 68 20 69 6e 74 | 65 72 66 61 63 65 20 28 |tosh int|erface (|
|00002000| 61 73 20 49 d5 6d 20 73 | 75 72 65 20 79 6f 75 20 |as I.m s|ure you |
|00002010| 61 6c 6c 20 77 6f 75 6c | 64 29 2c 20 61 6e 64 20 |all woul|d), and |
|00002020| 61 20 6d 6f 72 65 20 75 | 6e 69 66 6f 72 6d 20 62 |a more u|niform b|
|00002030| 6f 6f 74 20 74 69 6d 65 | 20 61 70 70 65 61 72 61 |oot time| appeara|
|00002040| 6e 63 65 20 63 61 6e 20 | 68 65 6c 70 20 61 63 68 |nce can |help ach|
|00002050| 69 65 76 65 20 74 68 69 | 73 20 67 6f 61 6c 2e 0d |ieve thi|s goal..|
|00002060| 46 75 72 74 68 65 72 20 | 52 65 66 65 72 65 6e 63 |Further |Referenc|
|00002070| 65 3a 0d a5 20 4d 2e 54 | 42 2e 4e 6f 74 69 66 69 |e:.. M.T|B.Notifi|
|00002080| 63 61 74 69 6f 6e 20 4d | 61 6e 61 67 65 72 0d 4f |cation M|anager.O|
|00002090| 53 20 33 20 2d 20 53 65 | 67 6d 65 6e 74 20 4c 6f |S 3 - Se|gment Lo|
|000020a0| 61 64 65 72 20 4c 69 6d | 69 74 61 74 69 6f 6e 73 |ader Lim|itations|
|000020b0| 0d 4f 70 65 72 61 74 69 | 6e 67 20 53 79 73 74 65 |.Operati|ng Syste|
|000020c0| 6d 09 0d 57 72 69 74 74 | 65 6e 20 62 79 3a 09 41 |m..Writt|en by:.A|
|000020d0| 6e 64 72 65 77 20 53 68 | 65 62 61 6e 6f 77 09 44 |ndrew Sh|ebanow.D|
|000020e0| 65 63 65 6d 62 65 72 20 | 31 39 38 38 0d 54 68 69 |ecember |1988.Thi|
|000020f0| 73 20 54 65 63 68 6e 69 | 63 61 6c 20 4e 6f 74 65 |s Techni|cal Note|
|00002100| 20 64 69 73 63 75 73 73 | 65 73 20 74 68 65 20 6a | discuss|es the j|
|00002110| 75 6d 70 20 74 61 62 6c | 65 20 6c 69 6d 69 74 61 |ump tabl|e limita|
|00002120| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 53 65 67 |tions of| the Seg|
|00002130| 6d 65 6e 74 20 4c 6f 61 | 64 65 72 20 61 6e 64 20 |ment Loa|der and |
|00002140| 73 75 67 67 65 73 74 73 | 20 73 6f 6d 65 20 77 61 |suggests| some wa|
|00002150| 79 73 20 74 6f 20 77 6f | 72 6b 20 61 72 6f 75 6e |ys to wo|rk aroun|
|00002160| 64 20 74 68 65 73 65 20 | 6c 69 6d 69 74 61 74 69 |d these |limitati|
|00002170| 6f 6e 73 20 74 6f 20 6d | 69 6e 69 6d 69 7a 65 20 |ons to m|inimize |
|00002180| 74 68 65 20 70 72 6f 62 | 6c 65 6d 2e 20 20 54 68 |the prob|lem. Th|
|00002190| 65 73 65 20 6c 69 6d 69 | 74 61 74 69 6f 6e 73 20 |ese limi|tations |
|000021a0| 61 72 65 20 6d 6f 73 74 | 20 65 76 69 64 65 6e 74 |are most| evident|
|000021b0| 20 74 6f 20 64 65 76 65 | 6c 6f 70 65 72 73 20 75 | to deve|lopers u|
|000021c0| 73 69 6e 67 20 4d 61 63 | 41 70 70 20 61 6e 64 20 |sing Mac|App and |
|000021d0| 6f 74 68 65 72 20 6f 62 | 6a 65 63 74 2d 6f 72 69 |other ob|ject-ori|
|000021e0| 65 6e 74 65 64 20 65 6e | 76 69 72 6f 6e 6d 65 6e |ented en|vironmen|
|000021f0| 74 73 2e 0d 41 73 20 61 | 70 70 6c 69 63 61 74 69 |ts..As a|pplicati|
|00002200| 6f 6e 20 73 69 7a 65 73 | 20 69 6e 63 72 65 61 73 |on sizes| increas|
|00002210| 65 2c 20 6d 6f 72 65 20 | 61 6e 64 20 6d 6f 72 65 |e, more |and more|
|00002220| 20 64 65 76 65 6c 6f 70 | 65 72 73 20 61 72 65 20 | develop|ers are |
|00002230| 68 69 74 74 69 6e 67 20 | 61 20 6c 69 74 74 6c 65 |hitting |a little|
|00002240| 20 6b 6e 6f 77 6e 20 6c | 69 6d 69 74 20 69 6e 20 | known l|imit in |
|00002250| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 72 75 |the Maci|ntosh ru|
|00002260| 6e 2d 74 69 6d 65 20 61 | 72 63 68 69 74 65 63 74 |n-time a|rchitect|
|00002270| 75 72 65 3a 20 20 74 68 | 65 20 53 65 67 6d 65 6e |ure: th|e Segmen|
|00002280| 74 20 4c 6f 61 64 65 72 | d5 73 20 6c 69 6d 69 74 |t Loader|.s limit|
|00002290| 20 6f 6e 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | on the |number o|
|000022a0| 66 20 6a 75 6d 70 20 74 | 61 62 6c 65 20 65 6e 74 |f jump t|able ent|
|000022b0| 72 69 65 73 2e 0d 54 68 | 65 20 53 65 67 6d 65 6e |ries..Th|e Segmen|
|000022c0| 74 20 4c 6f 61 64 65 72 | 20 72 65 61 64 73 20 74 |t Loader| reads t|
|000022d0| 68 65 20 6a 75 6d 70 20 | 74 61 62 6c 65 20 66 72 |he jump |table fr|
|000022e0| 6f 6d 20 27 43 4f 44 45 | 27 20 72 65 73 6f 75 72 |om 'CODE|' resour|
|000022f0| 63 65 20 30 2e 20 20 54 | 68 69 73 20 72 65 73 6f |ce 0. T|his reso|
|00002300| 75 72 63 65 20 68 61 73 | 20 74 68 65 20 66 6f 6c |urce has| the fol|
|00002310| 6c 6f 77 69 6e 67 20 66 | 6f 72 6d 61 74 3a 0d 46 |lowing f|ormat:.F|
|00002320| 69 67 75 72 65 20 31 d0 | 4a 75 6d 70 20 54 61 62 |igure 1.|Jump Tab|
|00002330| 6c 65 20 69 6e 20 27 43 | 4f 44 45 27 20 52 65 73 |le in 'C|ODE' Res|
|00002340| 6f 75 72 63 65 20 30 0d | 53 69 6e 63 65 20 74 68 |ource 0.|Since th|
|00002350| 65 20 36 38 30 30 30 20 | 75 73 65 73 20 73 69 67 |e 68000 |uses sig|
|00002360| 6e 65 64 20 31 36 2d 62 | 69 74 20 6f 66 66 73 65 |ned 16-b|it offse|
|00002370| 74 73 20 66 6f 72 20 41 | 35 2d 72 65 6c 61 74 69 |ts for A|5-relati|
|00002380| 76 65 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 2c |ve instr|uctions,|
|00002390| 20 74 68 65 20 6d 61 78 | 69 6d 75 6d 20 6f 66 66 | the max|imum off|
|000023a0| 73 65 74 20 74 68 61 74 | 20 63 61 6e 20 62 65 20 |set that| can be |
|000023b0| 73 70 65 63 69 66 69 65 | 64 20 69 73 20 33 32 37 |specifie|d is 327|
|000023c0| 36 37 2e 20 20 53 69 6e | 63 65 20 65 61 63 68 20 |67. Sin|ce each |
|000023d0| 6a 75 6d 70 20 74 61 62 | 6c 65 20 65 6e 74 72 79 |jump tab|le entry|
|000023e0| 20 74 61 6b 65 73 20 75 | 70 20 38 20 62 79 74 65 | takes u|p 8 byte|
|000023f0| 73 2c 20 74 68 65 72 65 | 20 63 61 6e 20 62 65 20 |s, there| can be |
|00002400| 34 30 39 36 20 6a 75 6d | 70 20 74 61 62 6c 65 20 |4096 jum|p table |
|00002410| 65 6e 74 72 69 65 73 2c | 20 62 75 74 20 77 65 20 |entries,| but we |
|00002420| 6e 65 65 64 20 74 6f 20 | 73 75 62 74 72 61 63 74 |need to |subtract|
|00002430| 20 74 68 65 20 31 36 20 | 62 79 74 65 73 20 75 73 | the 16 |bytes us|
|00002440| 65 64 20 62 79 20 74 68 | 65 20 6a 75 6d 70 20 74 |ed by th|e jump t|
|00002450| 61 62 6c 65 20 68 65 61 | 64 65 72 2c 20 73 6f 20 |able hea|der, so |
|00002460| 74 68 65 20 61 63 74 75 | 61 6c 20 6c 69 6d 69 74 |the actu|al limit|
|00002470| 20 6f 6e 20 6a 75 6d 70 | 20 74 61 62 6c 65 20 65 | on jump| table e|
|00002480| 6e 74 72 69 65 73 20 69 | 73 20 34 30 39 34 2e 0d |ntries i|s 4094..|
|00002490| 54 68 69 73 20 6c 69 6d | 69 74 20 6d 61 79 20 73 |This lim|it may s|
|000024a0| 65 65 6d 20 72 61 74 68 | 65 72 20 73 6d 61 6c 6c |eem rath|er small|
|000024b0| 2c 20 62 75 74 20 79 6f | 75 20 68 61 76 65 20 74 |, but yo|u have t|
|000024c0| 6f 20 72 65 6d 65 6d 62 | 65 72 20 74 68 61 74 20 |o rememb|er that |
|000024d0| 6a 75 6d 70 20 74 61 62 | 6c 65 20 65 6e 74 72 69 |jump tab|le entri|
|000024e0| 65 73 20 61 72 65 20 6f | 6e 6c 79 20 6e 65 65 64 |es are o|nly need|
|000024f0| 65 64 20 69 66 20 61 20 | 66 75 6e 63 74 69 6f 6e |ed if a |function|
|00002500| 20 69 73 20 63 61 6c 6c | 65 64 20 66 72 6f 6d 20 | is call|ed from |
|00002510| 6f 75 74 73 69 64 65 20 | 6f 66 20 69 74 73 20 6f |outside |of its o|
|00002520| 77 6e 20 73 65 67 6d 65 | 6e 74 20 28 61 2e 6b 2e |wn segme|nt (a.k.|
|00002530| 61 2e 20 61 6e 20 69 6e | 74 65 72 73 65 67 6d 65 |a. an in|tersegme|
|00002540| 6e 74 20 66 75 6e 63 74 | 69 6f 6e 20 63 61 6c 6c |nt funct|ion call|
|00002550| 29 2e 20 20 46 6f 72 20 | 72 6f 75 74 69 6e 65 73 |). For |routines|
|00002560| 20 74 68 61 74 20 61 72 | 65 20 6c 6f 63 61 6c 20 | that ar|e local |
|00002570| 74 6f 20 61 20 73 65 67 | 6d 65 6e 74 20 28 69 6e |to a seg|ment (in|
|00002580| 74 72 61 73 65 67 6d 65 | 6e 74 20 66 75 6e 63 74 |trasegme|nt funct|
|00002590| 69 6f 6e 20 63 61 6c 6c | 73 29 2c 20 74 68 65 20 |ion call|s), the |
|000025a0| 6c 69 6e 6b 65 72 20 63 | 61 6e 20 63 61 6c 6c 20 |linker c|an call |
|000025b0| 74 68 65 20 72 6f 75 74 | 69 6e 65 20 77 69 74 68 |the rout|ine with|
|000025c0| 6f 75 74 20 67 6f 69 6e | 67 20 74 68 72 6f 75 67 |out goin|g throug|
|000025d0| 68 20 74 68 65 20 6a 75 | 6d 70 20 74 61 62 6c 65 |h the ju|mp table|
|000025e0| 2e 0d 49 66 20 79 6f 75 | 20 61 72 65 20 64 65 76 |..If you| are dev|
|000025f0| 65 6c 6f 70 69 6e 67 20 | 61 20 6c 61 72 67 65 20 |eloping |a large |
|00002600| 70 72 6f 67 72 61 6d 2c | 20 61 6e 64 20 79 6f 75 |program,| and you|
|00002610| 20 74 68 69 6e 6b 20 79 | 6f 75 20 6d 69 67 68 74 | think y|ou might|
|00002620| 20 62 65 20 69 6e 20 64 | 61 6e 67 65 72 20 6f 66 | be in d|anger of|
|00002630| 20 72 75 6e 6e 69 6e 67 | 20 6f 75 74 20 6f 66 20 | running| out of |
|00002640| 6a 75 6d 70 20 74 61 62 | 6c 65 20 73 70 61 63 65 |jump tab|le space|
|00002650| 2c 20 68 65 72 65 20 61 | 72 65 20 73 6f 6d 65 20 |, here a|re some |
|00002660| 67 75 69 64 65 6c 69 6e | 65 73 20 79 6f 75 20 63 |guidelin|es you c|
|00002670| 61 6e 20 75 73 65 20 77 | 68 65 6e 20 64 65 73 69 |an use w|hen desi|
|00002680| 67 6e 69 6e 67 20 61 6e | 64 20 6f 72 67 61 6e 69 |gning an|d organi|
|00002690| 7a 69 6e 67 20 79 6f 75 | 72 20 63 6f 64 65 3a 0d |zing you|r code:.|
|000026a0| a5 20 53 65 67 6d 65 6e | 74 20 79 6f 75 72 20 73 |. Segmen|t your s|
|000026b0| 6f 75 72 63 65 20 63 6f | 64 65 20 62 61 73 65 64 |ource co|de based|
|000026c0| 20 6f 6e 20 79 6f 75 72 | 20 72 75 6e 2d 74 69 6d | on your| run-tim|
|000026d0| 65 20 63 61 6c 6c 20 63 | 68 61 69 6e 2c 20 72 61 |e call c|hain, ra|
|000026e0| 74 68 65 72 20 74 68 61 | 6e 20 6f 6e 20 61 20 73 |ther tha|n on a s|
|000026f0| 69 6d 70 6c 65 20 66 69 | 6c 65 2d 62 79 2d 66 69 |imple fi|le-by-fi|
|00002700| 6c 65 20 62 61 73 69 73 | 2e 0d a5 20 4b 65 65 70 |le basis|... Keep|
|00002710| 20 75 74 69 6c 69 74 79 | 20 72 6f 75 74 69 6e 65 | utility| routine|
|00002720| 73 20 69 6e 20 74 68 65 | 20 73 61 6d 65 20 73 65 |s in the| same se|
|00002730| 67 6d 65 6e 74 20 61 73 | 20 74 68 65 20 72 6f 75 |gment as| the rou|
|00002740| 74 69 6e 65 73 20 77 68 | 69 63 68 20 63 61 6c 6c |tines wh|ich call|
|00002750| 20 74 68 65 6d 2c 20 72 | 61 74 68 65 72 20 74 68 | them, r|ather th|
|00002760| 61 6e 20 6b 65 65 70 69 | 6e 67 20 74 68 65 6d 20 |an keepi|ng them |
|00002770| 69 6e 20 61 20 73 65 70 | 61 72 61 74 65 20 d2 55 |in a sep|arate .U|
|00002780| 74 69 6c 69 74 69 65 73 | d3 20 73 65 67 6d 65 6e |tilities|. segmen|
|00002790| 74 2e 0d a5 20 54 72 79 | 20 74 6f 20 6b 65 65 70 |t... Try| to keep|
|000027a0| 20 79 6f 75 72 20 73 65 | 67 6d 65 6e 74 73 20 63 | your se|gments c|
|000027b0| 6c 6f 73 65 20 74 6f 20 | 74 68 65 20 6d 61 78 69 |lose to |the maxi|
|000027c0| 6d 75 6d 20 73 69 7a 65 | 2e 20 20 54 68 65 20 66 |mum size|. The f|
|000027d0| 65 77 65 72 20 73 65 67 | 6d 65 6e 74 73 20 79 6f |ewer seg|ments yo|
|000027e0| 75 20 68 61 76 65 2c 20 | 74 68 65 20 66 65 77 65 |u have, |the fewe|
|000027f0| 72 20 69 6e 74 65 72 73 | 65 67 6d 65 6e 74 20 72 |r inters|egment r|
|00002800| 65 66 65 72 65 6e 63 65 | 73 20 79 6f 75 20 77 69 |eference|s you wi|
|00002810| 6c 6c 20 68 61 76 65 2e | 0d 54 68 65 20 34 30 39 |ll have.|.The 409|
|00002820| 34 20 72 6f 75 74 69 6e | 65 20 6c 69 6d 69 74 20 |4 routin|e limit |
|00002830| 62 65 63 6f 6d 65 73 20 | 61 20 6d 75 63 68 20 6d |becomes |a much m|
|00002840| 6f 72 65 20 73 69 67 6e | 69 66 69 63 61 6e 74 20 |ore sign|ificant |
|00002850| 70 72 6f 62 6c 65 6d 20 | 77 68 65 6e 20 79 6f 75 |problem |when you|
|00002860| 20 73 74 61 72 74 20 77 | 6f 72 6b 69 6e 67 20 77 | start w|orking w|
|00002870| 69 74 68 20 4d 61 63 41 | 70 70 20 61 6e 64 20 4f |ith MacA|pp and O|
|00002880| 62 6a 65 63 74 20 50 61 | 73 63 61 6c 2e 20 20 49 |bject Pa|scal. I|
|00002890| 66 20 79 6f 75 20 63 6f | 6d 70 69 6c 65 20 79 6f |f you co|mpile yo|
|000028a0| 75 72 20 4d 61 63 41 70 | 70 20 70 72 6f 67 72 61 |ur MacAp|p progra|
|000028b0| 6d 20 77 69 74 68 20 64 | 65 62 75 67 67 69 6e 67 |m with d|ebugging|
|000028c0| 20 74 75 72 6e 65 64 20 | 6f 6e 2c 20 79 6f 75 20 | turned |on, you |
|000028d0| 77 69 6c 6c 20 67 65 74 | 20 61 20 6a 75 6d 70 20 |will get| a jump |
|000028e0| 74 61 62 6c 65 20 65 6e | 74 72 79 20 66 6f 72 20 |table en|try for |
|000028f0| 65 76 65 72 79 20 6d 65 | 74 68 6f 64 20 69 6e 20 |every me|thod in |
|00002900| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 2e 20 20 41 |your pro|gram. A|
|00002910| 6c 6c 20 6f 66 20 61 20 | 73 75 64 64 65 6e 2c 20 |ll of a |sudden, |
|00002920| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6f |an appli|cation o|
|00002930| 66 20 6d 65 64 69 75 6d | 20 73 69 7a 65 20 63 61 |f medium| size ca|
|00002940| 6e 20 68 61 76 65 20 6a | 75 6d 70 20 74 61 62 6c |n have j|ump tabl|
|00002950| 65 20 70 72 6f 62 6c 65 | 6d 73 2e 20 20 57 6f 72 |e proble|ms. Wor|
|00002960| 6b 69 6e 67 20 61 72 6f | 75 6e 64 20 74 68 69 73 |king aro|und this|
|00002970| 20 70 72 6f 62 6c 65 6d | 20 69 73 20 65 78 74 72 | problem| is extr|
|00002980| 65 6d 65 6c 79 20 64 69 | 66 66 69 63 75 6c 74 2c |emely di|fficult,|
|00002990| 20 73 69 6e 63 65 20 74 | 68 65 20 6f 6e 6c 79 20 | since t|he only |
|000029a0| 6f 70 74 69 6f 6e 73 20 | 61 76 61 69 6c 61 62 6c |options |availabl|
|000029b0| 65 20 74 6f 20 79 6f 75 | 20 61 72 65 3a 0d a5 20 |e to you| are:.. |
|000029c0| 47 69 76 69 6e 67 20 75 | 70 20 74 68 65 20 4d 61 |Giving u|p the Ma|
|000029d0| 63 41 70 70 20 64 65 62 | 75 67 67 65 72 20 66 61 |cApp deb|ugger fa|
|000029e0| 63 69 6c 69 74 69 65 73 | 2c 20 61 6e 64 20 75 73 |cilities|, and us|
|000029f0| 69 6e 67 20 79 6f 75 72 | 20 66 61 76 6f 72 69 74 |ing your| favorit|
|00002a00| 65 20 6c 6f 77 2d 6c 65 | 76 65 6c 20 64 65 62 75 |e low-le|vel debu|
|00002a10| 67 67 65 72 20 69 6e 73 | 74 65 61 64 2e 0d a5 20 |gger ins|tead... |
|00002a20| 52 65 6f 72 67 61 6e 69 | 7a 69 6e 67 20 79 6f 75 |Reorgani|zing you|
|00002a30| 72 20 63 6c 61 73 73 65 | 73 2c 20 61 6e 64 20 72 |r classe|s, and r|
|00002a40| 65 64 75 63 69 6e 67 20 | 74 68 65 20 6e 75 6d 62 |educing |the numb|
|00002a50| 65 72 20 6f 66 20 6d 65 | 74 68 6f 64 73 20 69 6e |er of me|thods in|
|00002a60| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 74 6f | your pr|ogram to|
|00002a70| 20 61 20 72 65 61 73 6f | 6e 61 62 6c 65 20 6c 65 | a reaso|nable le|
|00002a80| 76 65 6c 2e 20 20 54 68 | 69 73 20 6d 65 61 6e 73 |vel. Th|is means|
|00002a90| 20 74 68 61 74 20 79 6f | 75 20 6d 61 79 20 68 61 | that yo|u may ha|
|00002aa0| 76 65 20 74 6f 20 6d 61 | 6b 65 20 6d 61 6a 6f 72 |ve to ma|ke major|
|00002ab0| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 20 63 68 61 | source |code cha|
|00002ac0| 6e 67 65 73 2c 20 61 6e | 64 20 79 6f 75 20 65 6e |nges, an|d you en|
|00002ad0| 64 20 75 70 20 77 69 74 | 68 20 61 20 6c 65 73 73 |d up wit|h a less|
|00002ae0| 20 d2 6f 62 6a 65 63 74 | 2d 6f 72 69 65 6e 74 65 | .object|-oriente|
|00002af0| 64 d3 20 70 72 6f 67 72 | 61 6d 20 74 68 61 6e 20 |d. progr|am than |
|00002b00| 79 6f 75 20 73 74 61 72 | 74 65 64 20 6f 75 74 20 |you star|ted out |
|00002b10| 77 69 74 68 2e 0d 42 6f | 74 68 20 6f 66 20 74 68 |with..Bo|th of th|
|00002b20| 65 73 65 20 6f 70 74 69 | 6f 6e 73 20 61 72 65 20 |ese opti|ons are |
|00002b30| 65 78 74 72 65 6d 65 6c | 79 20 64 69 73 74 61 73 |extremel|y distas|
|00002b40| 74 65 66 75 6c 2c 20 62 | 75 74 20 74 68 65 20 66 |teful, b|ut the f|
|00002b50| 69 6e 61 6c 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |inal ver|sion of |
|00002b60| 4d 61 63 41 70 70 20 32 | 2e 30 20 77 69 6c 6c 20 |MacApp 2|.0 will |
|00002b70| 61 6c 6c 65 76 69 61 74 | 65 20 74 68 65 20 70 72 |alleviat|e the pr|
|00002b80| 6f 62 6c 65 6d 20 62 79 | 20 6c 65 74 74 69 6e 67 |oblem by| letting|
|00002b90| 20 79 6f 75 20 63 6f 6d | 70 69 6c 65 20 79 6f 75 | you com|pile you|
|00002ba0| 72 20 70 72 6f 67 72 61 | 6d 73 20 77 69 74 68 20 |r progra|ms with |
|00002bb0| 62 6f 74 68 20 64 65 62 | 75 67 67 69 6e 67 20 61 |both deb|ugging a|
|00002bc0| 6e 64 20 6f 70 74 69 6d | 69 7a 61 74 69 6f 6e 20 |nd optim|ization |
|00002bd0| 74 75 72 6e 65 64 20 6f | 6e 2e 20 20 54 68 65 20 |turned o|n. The |
|00002be0| 6f 70 74 69 6d 69 7a 65 | 72 20 77 69 6c 6c 20 64 |optimize|r will d|
|00002bf0| 72 61 73 74 69 63 61 6c | 6c 79 20 72 65 64 75 63 |rastical|ly reduc|
|00002c00| 65 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |e the nu|mber of |
|00002c10| 6a 75 6d 70 20 74 61 62 | 6c 65 20 65 6e 74 72 69 |jump tab|le entri|
|00002c20| 65 73 2c 20 73 6f 20 74 | 68 65 20 70 72 6f 62 6c |es, so t|he probl|
|00002c30| 65 6d 20 73 68 6f 75 6c | 64 20 6f 6e 6c 79 20 6f |em shoul|d only o|
|00002c40| 63 63 75 72 20 77 69 74 | 68 20 76 65 72 79 20 6c |ccur wit|h very l|
|00002c50| 61 72 67 65 20 70 72 6f | 67 72 61 6d 73 2e 0d 4f |arge pro|grams..O|
|00002c60| 53 20 34 20 2d 20 4f 6d | 65 67 61 53 41 4e 45 0d |S 4 - Om|egaSANE.|
|00002c70| 4f 70 65 72 61 74 69 6e | 67 20 53 79 73 74 65 6d |Operatin|g System|
|00002c80| 09 0d 57 72 69 74 74 65 | 6e 20 62 79 3a 09 44 61 |..Writte|n by:.Da|
|00002c90| 76 65 20 52 61 64 63 6c | 69 66 66 65 20 61 6e 64 |ve Radcl|iffe and|
|00002ca0| 20 43 6f 6c 69 6e 20 4d | 63 4d 61 73 74 65 72 09 | Colin M|cMaster.|
|00002cb0| 4d 61 79 20 31 39 39 32 | 0d 53 79 73 74 65 6d 20 |May 1992|.System |
|00002cc0| 37 2e 30 2e 31 20 69 6e | 74 72 6f 64 75 63 65 64 |7.0.1 in|troduced|
|00002cd0| 20 61 20 6e 65 77 20 76 | 65 72 73 69 6f 6e 20 6f | a new v|ersion o|
|00002ce0| 66 20 53 41 4e 45 20 28 | 74 68 65 20 53 74 61 6e |f SANE (|the Stan|
|00002cf0| 64 61 72 64 20 41 70 70 | 6c 65 20 4e 75 6d 65 72 |dard App|le Numer|
|00002d00| 69 63 73 20 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 29 |ics Envi|ronment)|
|00002d10| 20 6b 6e 6f 77 6e 20 61 | 73 20 4f 6d 65 67 61 53 | known a|s OmegaS|
|00002d20| 41 4e 45 2e 20 20 54 68 | 69 73 20 4e 6f 74 65 20 |ANE. Th|is Note |
|00002d30| 64 69 73 63 75 73 73 65 | 73 20 74 68 65 20 66 65 |discusse|s the fe|
|00002d40| 61 74 75 72 65 73 20 6f | 66 20 4f 6d 65 67 61 53 |atures o|f OmegaS|
|00002d50| 41 4e 45 20 61 6e 64 20 | 74 68 65 20 61 73 73 6f |ANE and |the asso|
|00002d60| 63 69 61 74 65 64 20 63 | 6f 6d 70 61 74 69 62 69 |ciated c|ompatibi|
|00002d70| 6c 69 74 79 20 72 69 73 | 6b 73 2e 20 20 54 68 69 |lity ris|ks. Thi|
|00002d80| 73 20 6e 6f 74 65 20 63 | 6f 76 65 72 73 3a 0d 54 |s note c|overs:.T|
|00002d90| 6f 70 69 63 73 0d a5 09 | 4f 6d 65 67 61 53 41 4e |opics...|OmegaSAN|
|00002da0| 45 20 66 65 61 74 75 72 | 65 73 2c 20 69 6e 63 6c |E featur|es, incl|
|00002db0| 75 64 69 6e 67 3a 0d 09 | a5 20 43 6f 72 72 65 63 |uding:..|. Correc|
|00002dc0| 74 6c 79 20 72 6f 75 6e | 64 65 64 20 62 69 6e 61 |tly roun|ded bina|
|00002dd0| 72 79 20 ab 20 64 65 63 | 69 6d 61 6c 20 63 6f 6e |ry . dec|imal con|
|00002de0| 76 65 72 73 69 6f 6e 73 | 0d 09 a5 20 46 61 73 74 |versions|... Fast|
|00002df0| 65 72 20 74 72 61 6e 73 | 63 65 6e 64 65 6e 74 61 |er trans|cendenta|
|00002e00| 6c 20 66 75 6e 63 74 69 | 6f 6e 73 0d 09 a5 20 42 |l functi|ons... B|
|00002e10| 61 63 6b 70 61 74 63 68 | 69 6e 67 20 6f 66 20 50 |ackpatch|ing of P|
|00002e20| 61 63 6b 20 34 20 53 41 | 4e 45 20 74 72 61 70 73 |ack 4 SA|NE traps|
|00002e30| 20 66 6f 72 20 66 61 73 | 74 65 72 20 09 70 61 63 | for fas|ter .pac|
|00002e40| 6b 61 67 65 20 65 6e 74 | 72 79 0d a5 09 43 6f 6d |kage ent|ry...Com|
|00002e50| 70 61 74 69 62 69 6c 69 | 74 79 20 72 69 73 6b 73 |patibili|ty risks|
|00002e60| 20 64 75 65 20 74 6f 20 | 62 61 63 6b 70 61 74 63 | due to |backpatc|
|00002e70| 68 69 6e 67 0d 49 6e 74 | 72 6f 64 75 63 74 69 6f |hing.Int|roductio|
|00002e80| 6e 0d 53 79 73 74 65 6d | 20 37 2e 30 2e 31 20 69 |n.System| 7.0.1 i|
|00002e90| 6e 74 72 6f 64 75 63 65 | 64 20 61 20 6e 65 77 20 |ntroduce|d a new |
|00002ea0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 65 20 53 |version |of the S|
|00002eb0| 74 61 6e 64 61 72 64 20 | 41 70 70 6c 65 20 4e 75 |tandard |Apple Nu|
|00002ec0| 6d 65 72 69 63 73 20 45 | 6e 76 69 72 6f 6e 6d 65 |merics E|nvironme|
|00002ed0| 6e 74 20 28 53 41 4e 45 | 29 20 70 61 63 6b 61 67 |nt (SANE|) packag|
|00002ee0| 65 20 20 72 65 66 65 72 | 72 65 64 20 74 6f 20 61 |e refer|red to a|
|00002ef0| 73 20 4f 6d 65 67 61 53 | 41 4e 45 20 28 bd 53 41 |s OmegaS|ANE (.SA|
|00002f00| 4e 45 29 2e 20 57 68 69 | 6c 65 20 69 74 20 69 6d |NE). Whi|le it im|
|00002f10| 70 72 6f 76 65 73 20 74 | 68 65 20 70 65 72 66 6f |proves t|he perfo|
|00002f20| 72 6d 61 6e 63 65 20 6f | 66 20 53 41 4e 45 2c 20 |rmance o|f SANE, |
|00002f30| 69 74 20 69 73 20 6e 6f | 74 20 77 69 74 68 6f 75 |it is no|t withou|
|00002f40| 74 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |t compat|ibility |
|00002f50| 72 69 73 6b 73 2c 20 77 | 68 69 63 68 20 61 72 65 |risks, w|hich are|
|00002f60| 20 64 65 74 61 69 6c 65 | 64 20 62 65 6c 6f 77 2e | detaile|d below.|
|00002f70| 20 4e 65 77 20 62 69 6e | 61 72 79 20 ab 20 64 65 | New bin|ary . de|
|00002f80| 63 69 6d 61 6c 20 63 6f | 6e 76 65 72 73 69 6f 6e |cimal co|nversion|
|00002f90| 73 20 68 61 76 65 20 62 | 65 65 6e 20 69 6e 63 6c |s have b|een incl|
|00002fa0| 75 64 65 64 20 74 68 61 | 74 20 61 72 65 20 63 6f |uded tha|t are co|
|00002fb0| 72 72 65 63 74 6c 79 20 | 72 6f 75 6e 64 65 64 20 |rrectly |rounded |
|00002fc0| 61 63 72 6f 73 73 20 74 | 68 65 20 65 6e 74 69 72 |across t|he entir|
|00002fd0| 65 20 72 61 6e 67 65 20 | 6f 66 20 64 6f 75 62 6c |e range |of doubl|
|00002fe0| 65 20 65 78 74 65 6e 64 | 65 64 2e 20 54 68 69 73 |e extend|ed. This|
|00002ff0| 20 77 69 6c 6c 20 72 65 | 73 75 6c 74 20 69 6e 20 | will re|sult in |
|00003000| 69 6e 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |incompat|ibility |
|00003010| 77 69 74 68 20 70 72 65 | 76 69 6f 75 73 20 63 6f |with pre|vious co|
|00003020| 6e 76 65 72 73 69 6f 6e | 20 61 6c 67 6f 72 69 74 |nversion| algorit|
|00003030| 68 6d 73 20 66 6f 72 20 | 61 20 76 61 72 69 65 74 |hms for |a variet|
|00003040| 79 20 6f 66 20 69 6e 70 | 75 74 20 76 61 6c 75 65 |y of inp|ut value|
|00003050| 73 3b 20 74 68 65 20 72 | 65 73 75 6c 74 73 20 6f |s; the r|esults o|
|00003060| 66 20 74 68 65 20 bd 53 | 41 4e 45 20 63 6f 6e 76 |f the .S|ANE conv|
|00003070| 65 72 73 69 6f 6e 73 20 | 61 72 65 20 75 6e 69 66 |ersions |are unif|
|00003080| 6f 72 6d 6c 79 20 6d 6f | 72 65 20 61 63 63 75 72 |ormly mo|re accur|
|00003090| 61 74 65 2c 20 61 6e 64 | 20 77 69 6c 6c 20 62 65 |ate, and| will be|
|000030a0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 | compati|ble with|
|000030b0| 20 66 75 74 75 72 65 20 | 72 65 6c 65 61 73 65 73 | future |releases|
|000030c0| 20 6f 66 20 53 41 4e 45 | 2e 0d bd 53 41 4e 45 20 | of SANE|...SANE |
|000030d0| 46 65 61 74 75 72 65 73 | 0d 54 68 65 20 bd 53 41 |Features|.The .SA|
|000030e0| 4e 45 20 72 65 6c 65 61 | 73 65 20 70 72 6f 76 69 |NE relea|se provi|
|000030f0| 64 65 73 20 61 20 6e 75 | 6d 62 65 72 20 6f 66 20 |des a nu|mber of |
|00003100| 70 65 72 66 6f 72 6d 61 | 6e 63 65 20 65 6e 68 61 |performa|nce enha|
|00003110| 6e 63 65 6d 65 6e 74 73 | 20 77 68 69 6c 65 20 6d |ncements| while m|
|00003120| 61 69 6e 74 61 69 6e 69 | 6e 67 20 63 6f 6e 66 6f |aintaini|ng confo|
|00003130| 72 6d 61 6e 63 65 20 77 | 69 74 68 20 53 41 4e 45 |rmance w|ith SANE|
|00003140| 2e 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |. The fo|llowing |
|00003150| 65 6e 68 61 6e 63 65 6d | 65 6e 74 73 20 68 61 76 |enhancem|ents hav|
|00003160| 65 20 62 65 65 6e 20 69 | 6d 70 6c 65 6d 65 6e 74 |e been i|mplement|
|00003170| 65 64 3a 0d 09 a5 09 43 | 6f 72 72 65 63 74 6c 79 |ed:....C|orrectly|
|00003180| 20 72 6f 75 6e 64 65 64 | 20 62 69 6e 61 72 79 20 | rounded| binary |
|00003190| ab 20 64 65 63 69 6d 61 | 6c 20 63 6f 6e 76 65 72 |. decima|l conver|
|000031a0| 73 69 6f 6e 73 0d 09 a5 | 09 46 61 73 74 65 72 20 |sions...|.Faster |
|000031b0| 74 72 61 6e 73 63 65 6e | 64 65 6e 74 61 6c 20 66 |transcen|dental f|
|000031c0| 75 6e 63 74 69 6f 6e 73 | 0d 09 a5 09 42 61 63 6b |unctions|....Back|
|000031d0| 70 61 74 63 68 69 6e 67 | 20 6f 66 20 53 41 4e 45 |patching| of SANE|
|000031e0| 20 74 72 61 70 73 20 66 | 6f 72 20 66 61 73 74 65 | traps f|or faste|
|000031f0| 72 20 70 61 63 6b 61 67 | 65 20 65 6e 74 72 79 0d |r packag|e entry.|
|00003200| 54 61 62 6c 65 73 20 73 | 68 6f 77 69 6e 67 20 74 |Tables s|howing t|
|00003210| 68 65 20 70 65 72 66 6f | 72 6d 61 6e 63 65 20 6f |he perfo|rmance o|
|00003220| 66 20 bd 53 41 4e 45 20 | 61 72 65 20 67 69 76 65 |f .SANE |are give|
|00003230| 6e 20 62 65 6c 6f 77 2e | 20 41 20 6b 65 79 20 61 |n below.| A key a|
|00003240| 73 70 65 63 74 20 6f 66 | 20 74 68 65 20 70 65 72 |spect of| the per|
|00003250| 66 6f 72 6d 61 6e 63 65 | 20 67 61 69 6e 20 69 73 |formance| gain is|
|00003260| 20 74 68 65 20 d2 62 61 | 63 6b 70 61 74 63 68 69 | the .ba|ckpatchi|
|00003270| 6e 67 d3 20 6f 66 20 53 | 41 4e 45 20 74 72 61 70 |ng. of S|ANE trap|
|00003280| 73 2e 20 54 68 69 73 20 | 6d 65 63 68 61 6e 69 73 |s. This |mechanis|
|00003290| 6d 20 77 69 6c 6c 20 62 | 65 20 64 69 73 63 75 73 |m will b|e discus|
|000032a0| 73 65 64 20 62 65 6c 6f | 77 20 75 6e 64 65 72 20 |sed belo|w under |
|000032b0| d2 50 69 74 66 61 6c 6c | 73 2e d3 0d 54 68 65 20 |.Pitfall|s...The |
|000032c0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 bd 53 41 4e 45 |version |of .SANE|
|000032d0| 20 73 75 70 70 6c 69 65 | 64 20 77 69 74 68 20 53 | supplie|d with S|
|000032e0| 79 73 74 65 6d 20 37 2e | 30 2e 31 20 69 6e 73 74 |ystem 7.|0.1 inst|
|000032f0| 61 6c 6c 73 20 6f 6e 6c | 79 20 6f 6e 20 6d 61 63 |alls onl|y on mac|
|00003300| 68 69 6e 65 73 20 65 71 | 75 69 70 70 65 64 20 77 |hines eq|uipped w|
|00003310| 69 74 68 20 61 20 4d 61 | 63 69 6e 74 6f 73 68 20 |ith a Ma|cintosh |
|00003320| 49 49 63 69 20 52 4f 4d | 20 6f 72 20 6c 61 74 65 |IIci ROM| or late|
|00003330| 72 20 61 6e 64 20 61 6c | 73 6f 20 65 71 75 69 70 |r and al|so equip|
|00003340| 70 65 64 20 77 69 74 68 | 20 61 6e 20 46 50 55 2e |ped with| an FPU.|
|00003350| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 74 | For exa|mple, it|
|00003360| 20 69 6e 73 74 61 6c 6c | 73 20 6f 6e 20 61 20 4d | install|s on a M|
|00003370| 61 63 69 6e 74 6f 73 68 | 20 49 49 73 69 20 72 75 |acintosh| IIsi ru|
|00003380| 6e 6e 69 6e 67 20 53 79 | 73 74 65 6d 20 37 2e 30 |nning Sy|stem 7.0|
|00003390| 2e 31 20 61 6e 64 20 65 | 71 75 69 70 70 65 64 20 |.1 and e|quipped |
|000033a0| 77 69 74 68 20 61 6e 20 | 46 50 55 2c 20 62 75 74 |with an |FPU, but|
|000033b0| 20 6e 6f 74 20 6f 6e 20 | 6f 6e 65 20 77 69 74 68 | not on |one with|
|000033c0| 6f 75 74 20 61 6e 20 46 | 50 55 2e 20 4f 6e 20 74 |out an F|PU. On t|
|000033d0| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 51 75 61 |he Macin|tosh Qua|
|000033e0| 64 72 61 73 20 61 6e 64 | 20 74 68 65 20 50 6f 77 |dras and| the Pow|
|000033f0| 65 72 42 6f 6f 6b 20 31 | 34 30 2f 31 37 30 20 69 |erBook 1|40/170 i|
|00003400| 74 20 69 73 20 69 6e 20 | 52 4f 4d 2c 20 61 6c 74 |t is in |ROM, alt|
|00003410| 68 6f 75 67 68 20 69 74 | 20 64 6f 65 73 6e d5 74 |hough it| doesn.t|
|00003420| 20 6c 6f 61 64 20 6f 6e | 20 74 68 65 20 50 6f 77 | load on| the Pow|
|00003430| 65 72 42 6f 6f 6b 20 31 | 34 30 20 75 6e 6c 65 73 |erBook 1|40 unles|
|00003440| 73 20 69 74 20 68 61 73 | 20 61 6e 20 6f 70 74 69 |s it has| an opti|
|00003450| 6f 6e 61 6c 20 46 50 55 | 2e 20 20 4f 6e 20 6d 61 |onal FPU|. On ma|
|00003460| 63 68 69 6e 65 73 20 77 | 68 65 72 65 20 74 68 65 |chines w|here the|
|00003470| 20 46 50 55 20 69 73 20 | 6f 70 74 69 6f 6e 61 6c | FPU is |optional|
|00003480| 2c 20 61 64 64 69 74 69 | 6f 6e 20 6f 66 20 61 6e |, additi|on of an|
|00003490| 20 46 50 55 20 6d 61 79 | 20 72 65 71 75 69 72 65 | FPU may| require|
|000034a0| 20 72 65 2d 69 6e 73 74 | 61 6c 6c 61 74 69 6f 6e | re-inst|allation|
|000034b0| 20 6f 66 20 53 79 73 74 | 65 6d 20 37 2e 30 2e 31 | of Syst|em 7.0.1|
|000034c0| 20 62 65 66 6f 72 65 20 | 74 68 65 20 46 50 55 20 | before |the FPU |
|000034d0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 bd 53 41 4e 45 |version |of .SANE|
|000034e0| 20 77 69 6c 6c 20 6c 6f | 61 64 2e 0d 54 61 62 6c | will lo|ad..Tabl|
|000034f0| 65 20 31 20 70 72 65 73 | 65 6e 74 73 20 63 6f 6e |e 1 pres|ents con|
|00003500| 66 69 67 75 72 61 74 69 | 6f 6e 20 69 6e 66 6f 72 |figurati|on infor|
|00003510| 6d 61 74 69 6f 6e 20 63 | 6f 6e 63 65 72 6e 69 6e |mation c|oncernin|
|00003520| 67 20 74 68 65 20 76 65 | 72 73 69 6f 6e 73 20 6f |g the ve|rsions o|
|00003530| 66 20 53 41 4e 45 20 77 | 68 69 63 68 20 6d 61 79 |f SANE w|hich may|
|00003540| 20 62 65 20 69 6e 73 74 | 61 6c 6c 65 64 20 62 79 | be inst|alled by|
|00003550| 20 53 79 73 74 65 6d 20 | 37 2e 30 2e 31 2e 20 49 | System |7.0.1. I|
|00003560| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 6e 20 74 68 |nformati|on in th|
|00003570| 69 73 20 74 61 62 6c 65 | 20 69 73 20 73 75 62 6a |is table| is subj|
|00003580| 65 63 74 20 74 6f 20 63 | 68 61 6e 67 65 2e 20 54 |ect to c|hange. T|
|00003590| 68 65 20 46 50 55 20 63 | 6f 6c 75 6d 6e 20 73 74 |he FPU c|olumn st|
|000035a0| 61 74 65 73 20 77 68 65 | 74 68 65 72 20 74 68 65 |ates whe|ther the|
|000035b0| 20 6d 61 63 68 69 6e 65 | 20 68 61 73 20 61 6e 20 | machine| has an |
|000035c0| 46 50 55 20 6f 72 20 69 | 66 20 69 74 20 69 73 20 |FPU or i|f it is |
|000035d0| 6f 70 74 69 6f 6e 61 6c | 2e 20 54 68 65 20 63 6f |optional|. The co|
|000035e0| 6c 75 6d 6e 20 6c 61 62 | 65 6c 65 64 20 d2 43 6f |lumn lab|eled .Co|
|000035f0| 72 72 65 63 74 6c 79 20 | 52 6f 75 6e 64 65 64 20 |rrectly |Rounded |
|00003600| 42 69 6e 20 ab 20 44 65 | 63 d3 20 73 68 6f 77 73 |Bin . De|c. shows|
|00003610| 20 77 68 65 74 68 65 72 | 20 69 6d 70 72 6f 76 65 | whether| improve|
|00003620| 64 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 74 68 |d versio|ns of th|
|00003630| 65 20 62 69 6e 61 72 79 | 20 ab 20 64 65 63 69 6d |e binary| . decim|
|00003640| 61 6c 20 63 6f 6e 76 65 | 72 73 69 6f 6e 20 72 6f |al conve|rsion ro|
|00003650| 75 74 69 6e 65 73 20 28 | 64 69 73 63 75 73 73 65 |utines (|discusse|
|00003660| 64 20 62 65 6c 6f 77 29 | 20 61 72 65 20 61 76 61 |d below)| are ava|
|00003670| 69 6c 61 62 6c 65 2c 20 | 61 6e 64 20 77 68 69 63 |ilable, |and whic|
|00003680| 68 20 76 65 72 73 69 6f | 6e 20 28 56 2e 31 20 6f |h versio|n (V.1 o|
|00003690| 72 20 56 2e 32 29 20 69 | 73 20 73 75 70 70 6c 69 |r V.2) i|s suppli|
|000036a0| 65 64 2e 20 54 68 65 20 | d2 bd 53 41 4e 45 20 46 |ed. The |..SANE F|
|000036b0| 50 55 20 56 65 72 73 69 | 6f 6e d3 20 63 6f 6c 75 |PU Versi|on. colu|
|000036c0| 6d 6e 20 73 74 61 74 65 | 73 20 77 68 65 74 68 65 |mn state|s whethe|
|000036d0| 72 20 bd 53 41 4e 45 20 | 77 69 6c 6c 20 6c 6f 61 |r .SANE |will loa|
|000036e0| 64 20 6f 6e 20 61 20 67 | 69 76 65 6e 20 63 6f 6e |d on a g|iven con|
|000036f0| 66 69 67 75 72 61 74 69 | 6f 6e 2e 20 0d 4e 6f 74 |figurati|on. .Not|
|00003700| 65 3a 20 20 54 68 65 20 | 69 6e 66 6f 72 6d 61 74 |e: The |informat|
|00003710| 69 6f 6e 20 69 6e 20 74 | 68 69 73 20 74 61 62 6c |ion in t|his tabl|
|00003720| 65 20 77 69 6c 6c 20 75 | 6e 64 6f 75 62 74 65 64 |e will u|ndoubted|
|00003730| 6c 79 20 63 68 61 6e 67 | 65 20 69 6e 20 74 68 65 |ly chang|e in the|
|00003740| 20 66 75 74 75 72 65 2e | 20 20 44 65 76 65 6c 6f | future.| Develo|
|00003750| 70 65 72 73 20 73 68 6f | 75 6c 64 20 6e 6f 74 20 |pers sho|uld not |
|00003760| 61 73 73 75 6d 65 20 74 | 68 61 74 20 61 6e 79 20 |assume t|hat any |
|00003770| 70 61 72 74 69 63 75 6c | 61 72 20 6d 61 63 68 69 |particul|ar machi|
|00003780| 6e 65 2f 73 79 73 74 65 | 6d 20 73 6f 66 74 77 61 |ne/syste|m softwa|
|00003790| 72 65 20 63 6f 6d 62 69 | 6e 61 74 69 6f 6e 20 64 |re combi|nation d|
|000037a0| 6f 65 73 20 6f 72 20 64 | 6f 65 73 20 6e 6f 74 20 |oes or d|oes not |
|000037b0| 68 61 76 65 20 20 bd 53 | 41 4e 45 2e 0d 54 61 62 |have .S|ANE..Tab|
|000037c0| 6c 65 20 31 20 20 53 41 | 4e 45 20 43 6f 6e 66 69 |le 1 SA|NE Confi|
|000037d0| 67 75 72 61 74 69 6f 6e | 73 0d 4d 61 63 69 6e 74 |guration|s.Macint|
|000037e0| 6f 73 68 20 43 50 55 09 | 46 50 55 09 43 6f 72 72 |osh CPU.|FPU.Corr|
|000037f0| 65 63 74 6c 79 20 52 6f | 75 6e 64 65 64 20 42 69 |ectly Ro|unded Bi|
|00003800| 6e ab 44 65 63 09 bd 53 | 41 4e 45 0d 46 50 55 20 |n.Dec..S|ANE.FPU |
|00003810| 56 65 72 73 69 6f 6e 09 | 0d 4d 61 63 20 50 6c 75 |Version.|.Mac Plu|
|00003820| 73 09 4e 6f 09 4e 6f 09 | 4e 6f 09 0d 4d 61 63 20 |s.No.No.|No..Mac |
|00003830| 53 45 09 4e 6f 09 4e 6f | 09 4e 6f 09 0d 4d 61 63 |SE.No.No|.No..Mac|
|00003840| 20 43 6c 61 73 73 69 63 | 09 4e 6f 09 4e 6f 09 4e | Classic|.No.No.N|
|00003850| 6f 09 0d 4d 61 63 20 43 | 6c 61 73 73 69 63 20 49 |o..Mac C|lassic I|
|00003860| 49 09 4f 70 74 69 6f 6e | 61 6c 09 56 2e 32 20 69 |I.Option|al.V.2 i|
|00003870| 6e 20 52 4f 4d 09 77 2f | 20 37 2e 30 2e 31 20 26 |n ROM.w/| 7.0.1 &|
|00003880| 20 46 50 55 a0 09 0d 4d | 61 63 20 4c 43 09 4f 70 | FPU...M|ac LC.Op|
|00003890| 74 69 6f 6e 61 6c 09 56 | 2e 31 20 69 6e 20 52 4f |tional.V|.1 in RO|
|000038a0| 4d 09 77 2f 20 37 2e 30 | 2e 31 20 26 20 46 50 55 |M.w/ 7.0|.1 & FPU|
|000038b0| a0 09 0d 4d 61 63 20 49 | 49 73 69 09 4f 70 74 69 |...Mac I|Isi.Opti|
|000038c0| 6f 6e 61 6c 09 56 2e 31 | 20 69 6e 20 52 4f 4d 09 |onal.V.1| in ROM.|
|000038d0| 77 2f 20 37 2e 30 2e 31 | 20 26 20 46 50 55 a0 09 |w/ 7.0.1| & FPU..|
|000038e0| 0d 4d 61 63 20 53 45 2f | 33 30 09 59 65 73 09 4e |.Mac SE/|30.Yes.N|
|000038f0| 6f 09 4e 6f 09 0d 4d 61 | 63 20 49 49 09 59 65 73 |o.No..Ma|c II.Yes|
|00003900| 09 4e 6f 09 4e 6f 09 0d | 4d 61 63 20 49 49 78 09 |.No.No..|Mac IIx.|
|00003910| 59 65 73 09 4e 6f 09 4e | 6f 09 0d 4d 61 63 20 49 |Yes.No.N|o..Mac I|
|00003920| 49 63 78 09 59 65 73 09 | 4e 6f 09 4e 6f 09 0d 4d |Icx.Yes.|No.No..M|
|00003930| 61 63 20 49 49 63 69 09 | 59 65 73 09 56 2e 32 20 |ac IIci.|Yes.V.2 |
|00003940| 77 69 74 68 20 37 2e 30 | 2e 31 09 77 2f 20 37 2e |with 7.0|.1.w/ 7.|
|00003950| 30 2e 31 09 0d 4d 61 63 | 20 49 49 66 78 09 59 65 |0.1..Mac| IIfx.Ye|
|00003960| 73 09 56 2e 32 20 77 69 | 74 68 20 37 2e 30 2e 31 |s.V.2 wi|th 7.0.1|
|00003970| 09 77 2f 20 37 2e 30 2e | 31 09 0d 50 6f 77 65 72 |.w/ 7.0.|1..Power|
|00003980| 42 6f 6f 6b 20 31 30 30 | 09 59 65 73 09 4e 6f 09 |Book 100|.Yes.No.|
|00003990| 4e 6f 09 0d 50 6f 77 65 | 72 42 6f 6f 6b 20 31 34 |No..Powe|rBook 14|
|000039a0| 30 09 4f 70 74 69 6f 6e | 61 6c 09 56 2e 32 20 69 |0.Option|al.V.2 i|
|000039b0| 6e 20 52 4f 4d 09 77 2f | 20 37 2e 30 2e 31 20 26 |n ROM.w/| 7.0.1 &|
|000039c0| 20 46 50 55 a0 09 0d 50 | 6f 77 65 72 42 6f 6f 6b | FPU...P|owerBook|
|000039d0| 20 31 37 30 09 59 65 73 | 09 56 2e 32 20 69 6e 20 | 170.Yes|.V.2 in |
|000039e0| 52 4f 4d 09 59 65 73 09 | 0d 51 75 61 64 72 61 20 |ROM.Yes.|.Quadra |
|000039f0| 37 30 30 09 59 65 73 09 | 56 2e 32 20 69 6e 20 52 |700.Yes.|V.2 in R|
|00003a00| 4f 4d 09 59 65 73 09 0d | 51 75 61 64 72 61 20 39 |OM.Yes..|Quadra 9|
|00003a10| 30 30 09 59 65 73 09 56 | 2e 32 20 69 6e 20 52 4f |00.Yes.V|.2 in RO|
|00003a20| 4d 09 59 65 73 09 0d a0 | 20 46 50 55 20 6f 70 74 |M.Yes...| FPU opt|
|00003a30| 69 6f 6e 61 6c 20 73 79 | 73 74 65 6d 73 20 6d 61 |ional sy|stems ma|
|00003a40| 79 20 72 65 71 75 69 72 | 65 20 72 65 69 6e 73 74 |y requir|e reinst|
|00003a50| 61 6c 6c 61 74 69 6f 6e | 20 6f 66 0d 53 79 73 74 |allation| of.Syst|
|00003a60| 65 6d 20 37 2e 30 2e 31 | 20 61 66 74 65 72 20 69 |em 7.0.1| after i|
|00003a70| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 6f 66 20 61 |nstallat|ion of a|
|00003a80| 6e 20 46 50 55 20 62 65 | 66 6f 72 65 20 74 68 65 |n FPU be|fore the|
|00003a90| 20 0d bd 53 41 4e 45 20 | 46 50 55 20 76 65 72 73 | ..SANE |FPU vers|
|00003aa0| 69 6f 6e 20 77 69 6c 6c | 20 6c 6f 61 64 2e 0d 54 |ion will| load..T|
|00003ab0| 68 65 72 65 20 69 73 20 | 6e 6f 20 77 61 79 20 70 |here is |no way p|
|00003ac0| 72 6f 67 72 61 6d 6d 61 | 74 69 63 61 6c 6c 79 20 |rogramma|tically |
|00003ad0| 74 6f 20 64 69 73 61 62 | 6c 65 20 bd 53 41 4e 45 |to disab|le .SANE|
|00003ae0| 20 69 6e 20 53 79 73 74 | 65 6d 20 37 2e 30 2e 31 | in Syst|em 7.0.1|
|00003af0| 2c 20 6e 6f 72 20 69 73 | 20 69 74 20 61 20 75 73 |, nor is| it a us|
|00003b00| 65 72 20 6f 70 74 69 6f | 6e 2e 20 20 54 68 65 72 |er optio|n. Ther|
|00003b10| 65 20 69 73 20 61 6c 73 | 6f 20 6e 6f 20 77 61 79 |e is als|o no way|
|00003b20| 20 74 6f 20 72 65 6c 69 | 61 62 6c 79 20 64 65 74 | to reli|ably det|
|00003b30| 65 63 74 20 74 68 61 74 | 20 bd 53 41 4e 45 20 69 |ect that| .SANE i|
|00003b40| 73 20 70 72 65 73 65 6e | 74 2e 0d 42 69 6e 61 72 |s presen|t..Binar|
|00003b50| 79 20 ab 20 44 65 63 69 | 6d 61 6c 20 43 6f 6e 76 |y . Deci|mal Conv|
|00003b60| 65 72 73 69 6f 6e 73 0d | bd 53 41 4e 45 20 69 6e |ersions.|.SANE in|
|00003b70| 63 6c 75 64 65 73 20 62 | 69 6e 61 72 79 20 ab 20 |cludes b|inary . |
|00003b80| 64 65 63 69 6d 61 6c 20 | 63 6f 6e 76 65 72 73 69 |decimal |conversi|
|00003b90| 6f 6e 20 72 6f 75 74 69 | 6e 65 73 20 74 68 61 74 |on routi|nes that|
|00003ba0| 20 6d 61 79 20 70 72 6f | 64 75 63 65 20 72 65 73 | may pro|duce res|
|00003bb0| 75 6c 74 73 20 74 68 61 | 74 20 64 69 66 66 65 72 |ults tha|t differ|
|00003bc0| 20 66 72 6f 6d 20 70 72 | 65 76 69 6f 75 73 20 76 | from pr|evious v|
|00003bd0| 65 72 73 69 6f 6e 73 20 | 6f 66 20 53 41 4e 45 2e |ersions |of SANE.|
|00003be0| 20 56 65 72 73 69 6f 6e | 73 20 6f 66 20 74 68 65 | Version|s of the|
|00003bf0| 73 65 20 72 6f 75 74 69 | 6e 65 73 20 68 61 76 65 |se routi|nes have|
|00003c00| 20 62 65 65 6e 20 69 6e | 20 73 6f 6d 65 20 6d 61 | been in| some ma|
|00003c10| 63 68 69 6e 65 20 52 4f | 4d 73 20 73 69 6e 63 65 |chine RO|Ms since|
|00003c20| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 49 | the Mac|intosh I|
|00003c30| 49 73 69 2c 20 61 6e 64 | 20 61 6e 20 69 6d 70 72 |Isi, and| an impr|
|00003c40| 6f 76 65 64 20 76 65 72 | 73 69 6f 6e 20 28 56 2e |oved ver|sion (V.|
|00003c50| 32 29 20 69 73 20 69 6e | 20 74 68 65 20 6e 65 77 |2) is in| the new|
|00003c60| 65 73 74 20 52 4f 4d 73 | 2c 20 61 73 20 77 65 6c |est ROMs|, as wel|
|00003c70| 6c 20 61 73 20 bd 53 41 | 4e 45 2e 20 52 65 66 65 |l as .SA|NE. Refe|
|00003c80| 72 20 74 6f 20 54 61 62 | 6c 65 20 31 20 66 6f 72 |r to Tab|le 1 for|
|00003c90| 20 63 75 72 72 65 6e 74 | 20 63 6f 6e 66 69 67 75 | current| configu|
|00003ca0| 72 61 74 69 6f 6e 20 69 | 6e 66 6f 72 6d 61 74 69 |ration i|nformati|
|00003cb0| 6f 6e 2e 20 41 73 20 61 | 20 72 65 73 75 6c 74 20 |on. As a| result |
|00003cc0| 6f 66 20 74 68 65 73 65 | 20 69 6d 70 72 6f 76 65 |of these| improve|
|00003cd0| 64 20 63 6f 6e 76 65 72 | 73 69 6f 6e 20 72 6f 75 |d conver|sion rou|
|00003ce0| 74 69 6e 65 73 2c 20 66 | 6c 6f 61 74 69 6e 67 2d |tines, f|loating-|
|00003cf0| 70 6f 69 6e 74 20 63 6f | 6e 73 74 61 6e 74 73 20 |point co|nstants |
|00003d00| 74 68 61 74 20 61 72 65 | 20 75 73 65 64 20 69 6e |that are| used in|
|00003d10| 20 74 68 65 20 62 6f 64 | 79 20 6f 66 20 73 6f 75 | the bod|y of sou|
|00003d20| 72 63 65 20 63 6f 64 65 | 20 77 69 6c 6c 20 63 6f |rce code| will co|
|00003d30| 6d 70 69 6c 65 20 64 69 | 66 66 65 72 65 6e 74 6c |mpile di|fferentl|
|00003d40| 79 20 69 6e 20 74 68 65 | 20 70 72 65 73 65 6e 63 |y in the| presenc|
|00003d50| 65 20 6f 66 20 bd 53 41 | 4e 45 20 74 68 61 6e 20 |e of .SA|NE than |
|00003d60| 77 69 74 68 20 6f 6c 64 | 65 72 20 53 41 4e 45 20 |with old|er SANE |
|00003d70| 65 6e 67 69 6e 65 73 2e | 20 54 68 65 20 72 65 73 |engines.| The res|
|00003d80| 75 6c 74 73 20 61 72 65 | 20 75 6e 69 66 6f 72 6d |ults are| uniform|
|00003d90| 6c 79 20 62 65 74 74 65 | 72 2c 20 62 75 74 20 6d |ly bette|r, but m|
|00003da0| 61 79 20 63 61 75 73 65 | 20 75 6e 65 78 70 65 63 |ay cause| unexpec|
|00003db0| 74 65 64 20 76 61 72 69 | 61 6e 63 65 73 20 66 72 |ted vari|ances fr|
|00003dc0| 6f 6d 20 74 65 73 74 20 | 73 75 69 74 65 73 20 28 |om test |suites (|
|00003dd0| 66 6f 72 20 69 6e 73 74 | 61 6e 63 65 29 2e 20 54 |for inst|ance). T|
|00003de0| 68 65 72 65 66 6f 72 65 | 2c 20 63 61 72 65 20 6d |herefore|, care m|
|00003df0| 75 73 74 20 62 65 20 67 | 69 76 65 6e 20 74 6f 20 |ust be g|iven to |
|00003e00| 74 68 65 20 61 72 69 74 | 68 6d 65 74 69 63 20 65 |the arit|hmetic e|
|00003e10| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 69 6e 20 77 68 |nvironme|nt in wh|
|00003e20| 69 63 68 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 73 |ich comp|ilations|
|00003e30| 20 61 72 65 20 6d 61 64 | 65 2e 20 4f 6e 65 20 63 | are mad|e. One c|
|00003e40| 61 6e 20 74 65 6c 6c 20 | 77 68 69 63 68 20 76 65 |an tell |which ve|
|00003e50| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 62 69 6e |rsion of| the bin|
|00003e60| 61 72 79 ab 64 65 63 69 | 6d 61 6c 20 63 6f 6e 76 |ary.deci|mal conv|
|00003e70| 65 72 73 69 6f 6e 73 20 | 69 73 20 63 75 72 72 65 |ersions |is curre|
|00003e80| 6e 74 6c 79 20 69 6e 20 | 75 73 65 20 62 79 20 70 |ntly in |use by p|
|00003e90| 65 72 66 6f 72 6d 69 6e | 67 20 74 68 65 20 66 6f |erformin|g the fo|
|00003ea0| 6c 6c 6f 77 69 6e 67 20 | 63 6f 6d 70 75 74 61 74 |llowing |computat|
|00003eb0| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 43 61 6c 63 75 |ion on t|he Calcu|
|00003ec0| 6c 61 74 6f 72 20 44 41 | 3a 20 20 34 35 2f 31 30 |lator DA|: 45/10|
|00003ed0| 30 ca d0 20 30 2e 34 35 | 2e 20 4f 6e 20 6f 6c 64 |0.. 0.45|. On old|
|00003ee0| 65 72 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 53 |er versi|ons of S|
|00003ef0| 41 4e 45 2c 20 74 68 65 | 20 72 65 73 75 6c 74 20 |ANE, the| result |
|00003f00| 69 73 20 d0 32 2e 37 31 | 30 35 31 45 2d 32 30 2e |is .2.71|051E-20.|
|00003f10| 20 57 69 74 68 20 bd 53 | 41 4e 45 2c 20 74 68 65 | With .S|ANE, the|
|00003f20| 20 72 65 73 75 6c 74 20 | 69 73 20 30 20 61 73 20 | result |is 0 as |
|00003f30| 65 78 70 65 63 74 65 64 | 2e 0d 50 65 72 66 6f 72 |expected|..Perfor|
|00003f40| 6d 61 6e 63 65 20 49 6d | 70 72 6f 76 65 6d 65 6e |mance Im|provemen|
|00003f50| 74 73 0d bd 53 41 4e 45 | 20 63 61 6e 20 73 69 67 |ts..SANE| can sig|
|00003f60| 6e 69 66 69 63 61 6e 74 | 6c 79 20 69 6d 70 72 6f |nificant|ly impro|
|00003f70| 76 65 20 74 68 65 20 70 | 65 72 66 6f 72 6d 61 6e |ve the p|erforman|
|00003f80| 63 65 20 6f 66 20 6d 61 | 6e 79 20 66 6c 6f 61 74 |ce of ma|ny float|
|00003f90| 69 6e 67 2d 70 6f 69 6e | 74 20 53 41 4e 45 20 6f |ing-poin|t SANE o|
|00003fa0| 70 65 72 61 74 69 6f 6e | 73 2e 20 49 74 20 64 6f |peration|s. It do|
|00003fb0| 65 73 20 74 68 69 73 20 | 62 79 20 72 65 70 6c 61 |es this |by repla|
|00003fc0| 63 69 6e 67 20 5f 46 50 | 36 38 4b 20 74 72 61 70 |cing _FP|68K trap|
|00003fd0| 20 63 61 6c 6c 73 20 77 | 69 74 68 20 4a 53 52 20 | calls w|ith JSR |
|00003fe0| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 20 64 69 72 |instruct|ions dir|
|00003ff0| 65 63 74 6c 79 20 69 6e | 74 6f 20 74 68 65 20 61 |ectly in|to the a|
|00004000| 70 70 72 6f 70 72 69 61 | 74 65 20 53 41 4e 45 20 |ppropria|te SANE |
|00004010| 63 6f 64 65 2e 20 54 68 | 69 73 20 69 73 20 64 69 |code. Th|is is di|
|00004020| 73 63 75 73 73 65 64 20 | 69 6e 20 6d 6f 72 65 20 |scussed |in more |
|00004030| 64 65 74 61 69 6c 20 75 | 6e 64 65 72 20 d2 50 69 |detail u|nder .Pi|
|00004040| 74 66 61 6c 6c 73 2e d3 | 20 20 37 2e 30 2e 31 20 |tfalls..| 7.0.1 |
|00004050| bd 53 41 4e 45 20 64 6f | 65 73 20 6e 6f 74 20 61 |.SANE do|es not a|
|00004060| 6c 74 65 72 20 5f 45 6c | 65 6d 73 36 38 4b 20 74 |lter _El|ems68K t|
|00004070| 72 61 70 20 63 61 6c 6c | 73 2c 20 62 75 74 20 69 |rap call|s, but i|
|00004080| 6e 74 65 72 6e 61 6c 20 | 63 6f 64 65 20 69 6d 70 |nternal |code imp|
|00004090| 72 6f 76 65 6d 65 6e 74 | 73 20 61 72 65 20 75 73 |rovement|s are us|
|000040a0| 65 64 20 74 6f 20 69 6e | 63 72 65 61 73 65 20 74 |ed to in|crease t|
|000040b0| 68 65 20 70 65 72 66 6f | 72 6d 61 6e 63 65 20 6f |he perfo|rmance o|
|000040c0| 66 20 74 72 61 6e 73 63 | 65 6e 64 65 6e 74 61 6c |f transc|endental|
|000040d0| 20 66 75 6e 63 74 69 6f | 6e 73 2e 20 46 69 6e 61 | functio|ns. Fina|
|000040e0| 6c 6c 79 2c 20 bd 53 41 | 4e 45 20 64 6f 65 73 20 |lly, .SA|NE does |
|000040f0| 6e 6f 74 20 61 66 66 65 | 63 74 20 74 68 65 20 70 |not affe|ct the p|
|00004100| 65 72 66 6f 72 6d 61 6e | 63 65 20 6f 66 20 63 6f |erforman|ce of co|
|00004110| 64 65 20 63 6f 6d 70 69 | 6c 65 64 20 74 6f 20 75 |de compi|led to u|
|00004120| 73 65 20 74 68 65 20 46 | 50 55 20 64 69 72 65 63 |se the F|PU direc|
|00004130| 74 6c 79 2c 20 61 6c 74 | 68 6f 75 67 68 20 73 6f |tly, alt|hough so|
|00004140| 6d 65 20 6c 69 62 72 61 | 72 79 20 72 6f 75 74 69 |me libra|ry routi|
|00004150| 6e 65 73 20 75 73 65 64 | 20 77 69 74 68 20 73 75 |nes used| with su|
|00004160| 63 68 20 63 6f 64 65 20 | 28 73 75 63 68 20 61 73 |ch code |(such as|
|00004170| 20 74 68 65 20 43 53 41 | 4e 45 4c 69 62 38 38 31 | the CSA|NELib881|
|00004180| 2e 6f 20 72 6f 75 74 69 | 6e 65 73 20 4e 65 78 74 |.o routi|nes Next|
|00004190| 41 66 74 65 72 2c 20 43 | 6c 61 73 73 69 66 79 2c |After, C|lassify,|
|000041a0| 20 53 63 61 6c 62 2c 20 | 61 6e 64 20 52 65 6d 61 | Scalb, |and Rema|
|000041b0| 69 6e 64 65 72 29 20 77 | 69 6c 6c 20 62 65 20 62 |inder) w|ill be b|
|000041c0| 61 63 6b 70 61 74 63 68 | 65 64 20 62 79 20 bd 53 |ackpatch|ed by .S|
|000041d0| 41 4e 45 20 62 65 63 61 | 75 73 65 20 74 68 65 79 |ANE beca|use they|
|000041e0| 20 63 61 6c 6c 20 5f 46 | 50 36 38 4b 2e 0d 54 61 | call _F|P68K..Ta|
|000041f0| 62 6c 65 20 32 20 73 68 | 6f 77 73 20 74 79 70 69 |ble 2 sh|ows typi|
|00004200| 63 61 6c 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 20 |cal perf|ormance |
|00004210| 69 6d 70 72 6f 76 65 6d | 65 6e 74 20 75 73 69 6e |improvem|ent usin|
|00004220| 67 20 bd 53 41 4e 45 20 | 6f 6e 20 61 20 4d 61 63 |g .SANE |on a Mac|
|00004230| 69 6e 74 6f 73 68 20 49 | 49 63 69 2e 20 4f 66 20 |intosh I|Ici. Of |
|00004240| 63 6f 75 72 73 65 2c 20 | 61 63 74 75 61 6c 20 70 |course, |actual p|
|00004250| 65 72 66 6f 72 6d 61 6e | 63 65 20 64 65 70 65 6e |erforman|ce depen|
|00004260| 64 73 20 6f 6e 20 68 6f | 77 20 68 65 61 76 69 6c |ds on ho|w heavil|
|00004270| 79 20 79 6f 75 20 75 73 | 65 20 53 41 4e 45 20 61 |y you us|e SANE a|
|00004280| 6e 64 20 74 68 65 20 6d | 69 78 74 75 72 65 20 6f |nd the m|ixture o|
|00004290| 66 20 53 41 4e 45 20 6f | 70 65 72 61 74 69 6f 6e |f SANE o|peration|
|000042a0| 73 20 79 6f 75 20 75 73 | 65 2e 0d 54 61 62 6c 65 |s you us|e..Table|
|000042b0| 20 32 20 20 53 41 4e 45 | 20 50 65 72 66 6f 72 6d | 2 SANE| Perform|
|000042c0| 61 6e 63 65 0d 4f 70 65 | 72 61 74 69 6f 6e 09 4d |ance.Ope|ration.M|
|000042d0| 61 63 69 6e 74 6f 73 68 | 20 49 49 63 69 0d 53 41 |acintosh| IIci.SA|
|000042e0| 4e 45 0d 28 69 6e 20 66 | 6c 6f 70 73 29 09 4d 61 |NE.(in f|lops).Ma|
|000042f0| 63 69 6e 74 6f 73 68 20 | 49 49 63 69 0d bd 53 41 |cintosh |IIci..SA|
|00004300| 4e 45 20 28 69 6e 20 66 | 6c 6f 70 73 29 09 53 70 |NE (in f|lops).Sp|
|00004310| 65 65 64 75 70 20 46 61 | 63 74 6f 72 09 0d 41 64 |eedup Fa|ctor..Ad|
|00004320| 64 2f 53 75 62 74 72 61 | 63 74 09 31 38 2c 37 39 |d/Subtra|ct.18,79|
|00004330| 34 09 35 39 2c 32 35 39 | 09 33 2e 31 35 09 0d 4d |4.59,259|.3.15..M|
|00004340| 75 6c 74 69 70 6c 79 09 | 31 38 2c 31 38 32 09 35 |ultiply.|18,182.5|
|00004350| 33 2c 35 37 31 09 32 2e | 39 35 09 0d 44 69 76 69 |3,571.2.|95..Divi|
|00004360| 64 65 09 31 38 2c 34 37 | 36 09 35 35 2c 33 30 30 |de.18,47|6.55,300|
|00004370| 09 32 2e 39 39 09 0d 53 | 71 75 61 72 65 20 52 6f |.2.99..S|quare Ro|
|00004380| 6f 74 20 28 45 78 61 63 | 74 29 09 31 38 2c 35 34 |ot (Exac|t).18,54|
|00004390| 37 09 36 35 2c 39 33 34 | 09 33 2e 35 35 09 0d 53 |7.65,934|.3.55..S|
|000043a0| 71 75 61 72 65 20 52 6f | 6f 74 20 28 49 6e 65 78 |quare Ro|ot (Inex|
|000043b0| 61 63 74 29 09 31 38 2c | 33 34 39 09 35 39 2c 31 |act).18,|349.59,1|
|000043c0| 31 33 09 33 2e 32 32 09 | 0d 43 6f 73 69 6e 65 09 |13.3.22.|.Cosine.|
|000043d0| 39 30 32 09 37 2c 30 35 | 38 09 37 2e 38 32 09 0d |902.7,05|8.7.82..|
|000043e0| 53 69 6e 65 09 31 2c 32 | 39 30 09 38 2c 31 30 38 |Sine.1,2|90.8,108|
|000043f0| 09 36 2e 32 39 09 0d 54 | 61 6e 67 65 6e 74 09 38 |.6.29..T|angent.8|
|00004400| 32 36 09 37 2c 31 38 35 | 09 38 2e 37 30 09 0d 4c |26.7,185|.8.70..L|
|00004410| 6f 67 61 72 69 74 68 6d | 09 38 32 30 09 37 2c 36 |ogarithm|.820.7,6|
|00004420| 34 33 09 39 2e 33 32 09 | 0d 45 78 70 6f 6e 65 6e |43.9.32.|.Exponen|
|00004430| 74 69 61 6c 09 37 32 33 | 09 37 2c 33 31 37 09 31 |tial.723|.7,317.1|
|00004440| 30 2e 31 32 09 0d 43 6f | 6d 70 6f 75 6e 64 09 34 |0.12..Co|mpound.4|
|00004450| 31 33 09 33 2c 33 32 34 | 09 38 2e 30 35 09 0d 41 |13.3,324|.8.05..A|
|00004460| 6e 6e 75 69 74 79 09 33 | 35 38 09 33 2c 31 39 31 |nnuity.3|58.3,191|
|00004470| 09 38 2e 39 31 09 0d 0d | 50 69 74 66 61 6c 6c 73 |.8.91...|Pitfalls|
|00004480| 0d bd 53 41 4e 45 20 61 | 63 68 69 65 76 65 73 20 |..SANE a|chieves |
|00004490| 6d 6f 73 74 20 6f 66 20 | 69 74 73 20 70 65 72 66 |most of |its perf|
|000044a0| 6f 72 6d 61 6e 63 65 20 | 69 6d 70 72 6f 76 65 6d |ormance |improvem|
|000044b0| 65 6e 74 20 74 68 72 6f | 75 67 68 20 75 73 65 20 |ent thro|ugh use |
|000044c0| 6f 66 20 61 20 74 65 63 | 68 6e 69 71 75 65 20 6b |of a tec|hnique k|
|000044d0| 6e 6f 77 6e 20 61 73 20 | d2 62 61 63 6b 70 61 74 |nown as |.backpat|
|000044e0| 63 68 69 6e 67 2e d3 20 | 55 73 65 20 6f 66 20 62 |ching.. |Use of b|
|000044f0| 61 63 6b 70 61 74 63 68 | 69 6e 67 20 69 6e 74 72 |ackpatch|ing intr|
|00004500| 6f 64 75 63 65 73 20 61 | 20 6e 75 6d 62 65 72 20 |oduces a| number |
|00004510| 6f 66 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |of compa|tibility|
|00004520| 20 69 6d 70 6c 69 63 61 | 74 69 6f 6e 73 2e 20 54 | implica|tions. T|
|00004530| 6f 20 69 6d 70 6c 65 6d | 65 6e 74 20 62 61 63 6b |o implem|ent back|
|00004540| 70 61 74 63 68 69 6e 67 | 2c 20 74 68 65 20 66 72 |patching|, the fr|
|00004550| 6f 6e 74 20 65 6e 64 20 | 6f 66 20 74 6f 6f 6c 62 |ont end |of toolb|
|00004560| 6f 78 20 53 41 4e 45 20 | 68 61 73 20 62 65 65 6e |ox SANE |has been|
|00004570| 20 61 6c 74 65 72 65 64 | 20 74 6f 20 68 61 76 65 | altered| to have|
|00004580| 20 6d 75 6c 74 69 70 6c | 65 20 65 6e 74 72 79 20 | multipl|e entry |
|00004590| 70 6f 69 6e 74 73 20 63 | 6f 72 72 65 73 70 6f 6e |points c|orrespon|
|000045a0| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 6d 6f 73 74 |ding to |the most|
|000045b0| 20 69 6d 70 6f 72 74 61 | 6e 74 20 6f 70 65 72 61 | importa|nt opera|
|000045c0| 74 69 6f 6e 73 2c 20 61 | 6e 64 20 79 6f 75 72 20 |tions, a|nd your |
|000045d0| 20 52 41 4d 2d 62 61 73 | 65 64 20 61 70 70 6c 69 | RAM-bas|ed appli|
|000045e0| 63 61 74 69 6f 6e 20 63 | 6f 64 65 20 69 73 20 6d |cation c|ode is m|
|000045f0| 6f 64 69 66 69 65 64 20 | 6f 6e 20 74 68 65 20 66 |odified |on the f|
|00004600| 6c 79 20 72 65 70 6c 61 | 63 69 6e 67 20 74 72 61 |ly repla|cing tra|
|00004610| 70 73 20 77 69 74 68 20 | 73 70 65 65 64 69 65 72 |ps with |speedier|
|00004620| 20 4a 53 52 73 20 74 6f | 20 74 68 65 20 61 70 70 | JSRs to| the app|
|00004630| 72 6f 70 72 69 61 74 65 | 20 65 6e 74 72 79 20 70 |ropriate| entry p|
|00004640| 6f 69 6e 74 2e 20 53 75 | 62 73 65 71 75 65 6e 74 |oint. Su|bsequent|
|00004650| 20 65 78 65 63 75 74 69 | 6f 6e 20 63 61 75 73 65 | executi|on cause|
|00004660| 73 20 74 68 65 20 63 6f | 64 65 20 74 6f 20 62 79 |s the co|de to by|
|00004670| 70 61 73 73 20 74 68 65 | 20 74 72 61 70 20 64 69 |pass the| trap di|
|00004680| 73 70 61 74 63 68 65 72 | 20 61 6e 64 20 63 61 6c |spatcher| and cal|
|00004690| 6c 20 53 41 4e 45 20 64 | 69 72 65 63 74 6c 79 2e |l SANE d|irectly.|
|000046a0| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 61 6e | For exa|mple, an|
|000046b0| 20 61 72 63 68 65 74 79 | 70 61 6c 20 53 41 4e 45 | archety|pal SANE|
|000046c0| 20 70 61 63 6b 61 67 65 | 20 63 61 6c 6c 20 6c 6f | package| call lo|
|000046d0| 6f 6b 73 20 6c 69 6b 65 | 20 74 68 69 73 3a 0d 09 |oks like| this:..|
|000046e0| 70 65 61 09 66 6f 6f 53 | 72 63 09 3b 20 50 75 73 |pea.fooS|rc.; Pus|
|000046f0| 68 20 61 64 64 72 65 73 | 73 20 6f 66 20 74 68 65 |h addres|s of the|
|00004700| 20 73 6f 75 72 63 65 20 | 6f 70 65 72 61 6e 64 0d | source |operand.|
|00004710| 09 70 65 61 09 62 61 72 | 44 73 74 09 3b 20 50 75 |.pea.bar|Dst.; Pu|
|00004720| 73 68 20 74 68 65 20 61 | 64 64 72 65 73 73 20 6f |sh the a|ddress o|
|00004730| 66 20 74 68 65 20 64 65 | 73 74 69 6e 61 74 69 6f |f the de|stinatio|
|00004740| 6e 20 6f 70 65 72 61 6e | 64 0d 09 6d 6f 76 65 2e |n operan|d..move.|
|00004750| 77 09 23 4f 70 43 6f 64 | 65 2c 2d 28 73 70 29 09 |w.#OpCod|e,-(sp).|
|00004760| 3b 20 50 75 73 68 20 61 | 20 53 41 4e 45 20 6f 70 |; Push a| SANE op|
|00004770| 63 6f 64 65 20 77 6f 72 | 64 0d 09 5f 46 50 36 38 |code wor|d.._FP68|
|00004780| 4b 09 09 3b 20 54 72 61 | 70 20 74 6f 20 53 41 4e |K..; Tra|p to SAN|
|00004790| 45 0d 4e 6f 74 69 63 65 | 20 74 68 61 74 20 74 68 |E.Notice| that th|
|000047a0| 65 20 6c 61 73 74 20 74 | 77 6f 20 69 6e 73 74 72 |e last t|wo instr|
|000047b0| 75 63 74 69 6f 6e 73 20 | 6f 63 63 75 70 79 20 74 |uctions |occupy t|
|000047c0| 68 72 65 65 20 77 6f 72 | 64 73 2c 20 6a 75 73 74 |hree wor|ds, just|
|000047d0| 20 65 6e 6f 75 67 68 20 | 66 6f 72 20 74 68 65 20 | enough |for the |
|000047e0| 64 65 73 69 72 65 64 20 | 4a 53 52 2e 20 bd 53 41 |desired |JSR. .SA|
|000047f0| 4e 45 20 6d 6f 64 69 66 | 69 65 73 20 74 68 65 20 |NE modif|ies the |
|00004800| 52 41 4d 2d 69 6d 61 67 | 65 20 6f 66 20 74 68 65 |RAM-imag|e of the|
|00004810| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 72 65 73 | applica|tion res|
|00004820| 75 6c 74 69 6e 67 20 69 | 6e 20 63 6f 64 65 20 6c |ulting i|n code l|
|00004830| 69 6b 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ike the |followin|
|00004840| 67 3a 0d 09 70 65 61 09 | 66 6f 6f 53 72 63 09 09 |g:..pea.|fooSrc..|
|00004850| 09 3b 20 50 75 73 68 20 | 61 64 64 72 65 73 73 20 |.; Push |address |
|00004860| 6f 66 20 74 68 65 20 73 | 6f 75 72 63 65 20 6f 70 |of the s|ource op|
|00004870| 65 72 61 6e 64 0d 09 70 | 65 61 09 62 61 72 44 73 |erand..p|ea.barDs|
|00004880| 74 09 09 09 3b 20 50 75 | 73 68 20 74 68 65 20 61 |t...; Pu|sh the a|
|00004890| 64 64 72 65 73 73 20 6f | 66 20 74 68 65 20 64 65 |ddress o|f the de|
|000048a0| 73 74 2e 20 6f 70 65 72 | 61 6e 64 0d 09 6a 73 72 |st. oper|and..jsr|
|000048b0| 09 d4 53 41 4e 45 20 65 | 6e 74 72 79 20 70 6f 69 |..SANE e|ntry poi|
|000048c0| 6e 74 d5 09 3b 20 4a 53 | 52 20 74 6f 20 61 70 70 |nt..; JS|R to app|
|000048d0| 72 6f 70 72 69 61 74 65 | 20 53 41 4e 45 20 65 6e |ropriate| SANE en|
|000048e0| 74 72 79 20 70 6f 69 6e | 74 0d 48 65 72 65 69 6e |try poin|t.Herein|
|000048f0| 20 6c 69 65 73 20 61 20 | 70 6f 74 65 6e 74 69 61 | lies a |potentia|
|00004900| 6c 20 70 72 6f 62 6c 65 | 6d 2e 20 54 68 65 72 65 |l proble|m. There|
|00004910| 20 69 73 20 6e 6f 74 68 | 69 6e 67 20 74 6f 20 67 | is noth|ing to g|
|00004920| 75 61 72 61 6e 74 65 65 | 20 74 68 61 74 20 74 68 |uarantee| that th|
|00004930| 65 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 69 6d |e instru|ction im|
|00004940| 6d 65 64 69 61 74 65 6c | 79 20 70 72 69 6f 72 20 |mediatel|y prior |
|00004950| 74 6f 20 74 68 65 20 5f | 46 50 36 38 4b 20 74 72 |to the _|FP68K tr|
|00004960| 61 70 20 77 61 73 20 61 | 63 74 75 61 6c 6c 79 20 |ap was a|ctually |
|00004970| 65 78 65 63 75 74 65 64 | 2e 20 41 20 70 72 6f 67 |executed|. A prog|
|00004980| 72 61 6d 20 63 6f 6e 74 | 72 6f 6c 20 6f 70 65 72 |ram cont|rol oper|
|00004990| 61 74 69 6f 6e 2c 20 73 | 75 63 68 20 61 73 20 61 |ation, s|uch as a|
|000049a0| 20 42 52 41 2c 20 63 6f | 75 6c 64 20 68 61 76 65 | BRA, co|uld have|
|000049b0| 20 63 61 75 73 65 64 20 | 63 6f 6e 74 72 6f 6c 20 | caused |control |
|000049c0| 74 6f 20 62 65 20 70 61 | 73 73 65 64 20 74 6f 20 |to be pa|ssed to |
|000049d0| 74 68 65 20 5f 46 50 36 | 38 4b 20 6f 70 65 72 61 |the _FP6|8K opera|
|000049e0| 74 69 6f 6e 20 77 69 74 | 68 6f 75 74 20 65 78 65 |tion wit|hout exe|
|000049f0| 63 75 74 69 6e 67 20 74 | 68 65 20 70 72 65 63 65 |cuting t|he prece|
|00004a00| 64 69 6e 67 20 6d 6f 76 | 65 2e 77 2e 20 46 6f 72 |ding mov|e.w. For|
|00004a10| 20 69 6e 73 74 61 6e 63 | 65 2c 20 61 6e 20 65 78 | instanc|e, an ex|
|00004a20| 65 63 75 74 69 6f 6e 20 | 73 65 71 75 65 6e 63 65 |ecution |sequence|
|00004a30| 20 73 75 63 68 20 61 73 | 20 74 68 65 20 66 6f 6c | such as| the fol|
|00004a40| 6c 6f 77 69 6e 67 3a 0d | 09 70 65 61 09 73 75 62 |lowing:.|.pea.sub|
|00004a50| 53 72 63 09 09 3b 20 50 | 75 73 68 20 73 6f 75 72 |Src..; P|ush sour|
|00004a60| 63 65 20 66 6f 72 20 73 | 75 62 74 72 61 63 74 0d |ce for s|ubtract.|
|00004a70| 09 70 65 61 09 73 75 62 | 44 73 74 09 09 3b 20 50 |.pea.sub|Dst..; P|
|00004a80| 75 73 68 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |ush dest|ination |
|00004a90| 66 6f 72 20 73 75 62 74 | 72 61 63 74 0d 09 6d 6f |for subt|ract..mo|
|00004aa0| 76 65 09 23 24 30 30 30 | 32 2c 2d 28 73 70 29 09 |ve.#$000|2,-(sp).|
|00004ab0| 3b 20 50 75 73 68 20 73 | 75 62 74 72 61 63 74 20 |; Push s|ubtract |
|00004ac0| 65 78 74 65 6e 64 65 64 | 20 6f 70 63 6f 64 65 20 |extended| opcode |
|00004ad0| 77 6f 72 64 0d 09 62 72 | 61 09 40 31 09 09 3b 20 |word..br|a.@1..; |
|00004ae0| 42 72 61 6e 63 68 20 74 | 6f 20 5f 46 50 36 38 4b |Branch t|o _FP68K|
|00004af0| 20 74 72 61 70 0d 09 2e | 0d 09 2e 0d 09 2e 0d 09 | trap...|........|
|00004b00| 70 65 61 09 61 64 64 53 | 72 63 32 09 3b 20 50 75 |pea.addS|rc2.; Pu|
|00004b10| 73 68 20 73 6f 75 72 63 | 65 20 66 6f 72 20 61 64 |sh sourc|e for ad|
|00004b20| 64 0d 09 70 65 61 09 61 | 64 64 44 73 74 32 09 3b |d..pea.a|ddDst2.;|
|00004b30| 20 50 75 73 68 20 64 65 | 73 74 69 6e 61 74 69 6f | Push de|stinatio|
|00004b40| 6e 20 66 6f 72 20 61 64 | 64 0d 09 6d 6f 76 65 09 |n for ad|d..move.|
|00004b50| 23 24 30 30 30 30 2c 2d | 28 73 70 29 09 3b 20 50 |#$0000,-|(sp).; P|
|00004b60| 75 73 68 20 61 64 64 20 | 65 78 74 65 6e 64 65 64 |ush add |extended|
|00004b70| 20 6f 70 63 6f 64 65 20 | 77 6f 72 64 0d 40 31 09 | opcode |word.@1.|
|00004b80| 5f 46 50 36 38 4b 09 09 | 09 3b 20 54 72 61 70 20 |_FP68K..|.; Trap |
|00004b90| 74 6f 20 53 41 4e 45 0d | 77 6f 75 6c 64 20 68 61 |to SANE.|would ha|
|00004ba0| 76 65 20 74 68 65 20 75 | 6e 73 65 65 6d 6c 79 20 |ve the u|nseemly |
|00004bb0| 72 65 73 75 6c 74 20 6f | 66 20 d2 62 61 63 6b 70 |result o|f .backp|
|00004bc0| 61 74 63 68 69 6e 67 d3 | 20 61 20 4a 53 52 20 74 |atching.| a JSR t|
|00004bd0| 6f 20 74 68 65 20 65 78 | 74 65 6e 64 65 64 20 61 |o the ex|tended a|
|00004be0| 64 64 20 65 6e 74 72 79 | 20 70 6f 69 6e 74 2c 20 |dd entry| point, |
|00004bf0| 61 6e 64 20 66 75 74 75 | 72 65 20 65 78 65 63 75 |and futu|re execu|
|00004c00| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 73 75 62 |tions of| the sub|
|00004c10| 74 72 61 63 74 69 6f 6e | 20 63 6f 64 65 20 77 6f |traction| code wo|
|00004c20| 75 6c 64 20 62 72 61 6e | 63 68 20 74 6f 20 74 68 |uld bran|ch to th|
|00004c30| 65 20 6d 69 64 64 6c 65 | 20 6f 66 20 61 20 4a 53 |e middle| of a JS|
|00004c40| 52 20 63 61 75 73 69 6e | 67 20 61 6e 20 69 6c 6c |R causin|g an ill|
|00004c50| 65 67 61 6c 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |egal ins|truction|
|00004c60| 20 65 72 72 6f 72 20 28 | 74 68 65 20 69 6c 6c 65 | error (|the ille|
|00004c70| 67 61 6c 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 20 |gal inst|ruction |
|00004c80| 65 72 72 6f 72 20 6d 69 | 67 68 74 20 6e 6f 74 20 |error mi|ght not |
|00004c90| 6f 63 63 75 72 20 72 69 | 67 68 74 20 61 77 61 79 |occur ri|ght away|
|00004ca0| 29 2e 20 4e 6f 74 65 2c | 20 68 6f 77 65 76 65 72 |). Note,| however|
|00004cb0| 2c 20 74 68 61 74 20 74 | 68 65 20 66 6f 6c 6c 6f |, that t|he follo|
|00004cc0| 77 69 6e 67 20 73 69 6d | 69 6c 61 72 20 63 6f 64 |wing sim|ilar cod|
|00004cd0| 65 20 73 65 71 75 65 6e | 63 65 20 77 6f 72 6b 73 |e sequen|ce works|
|00004ce0| 20 63 6f 72 72 65 63 74 | 6c 79 20 69 6e 20 74 68 | correct|ly in th|
|00004cf0| 65 20 70 72 65 73 65 6e | 63 65 20 6f 66 20 62 61 |e presen|ce of ba|
|00004d00| 63 6b 70 61 74 63 68 69 | 6e 67 3a 0d 09 70 65 61 |ckpatchi|ng:..pea|
|00004d10| 09 61 64 64 53 72 63 09 | 09 3b 20 50 75 73 68 20 |.addSrc.|.; Push |
|00004d20| 73 6f 75 72 63 65 20 66 | 6f 72 20 61 64 64 0d 09 |source f|or add..|
|00004d30| 70 65 61 09 61 64 64 44 | 73 74 09 09 3b 20 50 75 |pea.addD|st..; Pu|
|00004d40| 73 68 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 66 |sh desti|nation f|
|00004d50| 6f 72 20 61 64 64 0d 09 | 62 72 61 09 40 31 09 09 |or add..|bra.@1..|
|00004d60| 3b 20 42 72 61 6e 63 68 | 20 74 6f 20 5f 46 50 36 |; Branch| to _FP6|
|00004d70| 38 4b 20 74 72 61 70 0d | 09 2e 0d 09 2e 0d 09 2e |8K trap.|........|
|00004d80| 0d 09 70 65 61 09 61 64 | 64 53 72 63 32 09 3b 20 |..pea.ad|dSrc2.; |
|00004d90| 50 75 73 68 20 73 6f 75 | 72 63 65 20 66 6f 72 20 |Push sou|rce for |
|00004da0| 61 64 64 0d 09 70 65 61 | 09 61 64 64 44 73 74 32 |add..pea|.addDst2|
|00004db0| 09 3b 20 50 75 73 68 20 | 64 65 73 74 69 6e 61 74 |.; Push |destinat|
|00004dc0| 69 6f 6e 20 66 6f 72 20 | 61 64 64 0d 40 31 09 6d |ion for |add.@1.m|
|00004dd0| 6f 76 65 09 23 24 30 30 | 30 30 2c 2d 28 73 70 29 |ove.#$00|00,-(sp)|
|00004de0| 09 3b 20 50 75 73 68 20 | 61 64 64 20 65 78 74 65 |.; Push |add exte|
|00004df0| 6e 64 65 64 20 6f 70 63 | 6f 64 65 20 77 6f 72 64 |nded opc|ode word|
|00004e00| 0d 09 5f 46 50 36 38 4b | 09 09 09 3b 20 54 72 61 |.._FP68K|...; Tra|
|00004e10| 70 20 74 6f 20 53 41 4e | 45 0d 54 68 65 20 74 79 |p to SAN|E.The ty|
|00004e20| 70 65 20 6f 66 20 63 6f | 64 65 20 73 65 71 75 65 |pe of co|de seque|
|00004e30| 6e 63 65 20 74 68 61 74 | 20 69 73 20 70 72 6f 62 |nce that| is prob|
|00004e40| 6c 65 6d 61 74 69 63 20 | 66 6f 72 20 62 61 63 6b |lematic |for back|
|00004e50| 70 61 74 63 68 69 6e 67 | 20 28 61 73 20 61 62 6f |patching| (as abo|
|00004e60| 76 65 29 20 63 61 6e 6e | 6f 74 20 62 65 20 65 6d |ve) cann|ot be em|
|00004e70| 69 74 74 65 64 20 62 79 | 20 74 68 65 20 63 75 72 |itted by| the cur|
|00004e80| 72 65 6e 74 20 4d 50 57 | 20 43 20 61 6e 64 20 50 |rent MPW| C and P|
|00004e90| 61 73 63 61 6c 20 63 6f | 6d 70 69 6c 65 72 73 20 |ascal co|mpilers |
|00004ea0| 6f 72 20 62 79 20 63 75 | 72 72 65 6e 74 20 54 68 |or by cu|rrent Th|
|00004eb0| 69 6e 6b aa 20 63 6f 6d | 70 69 6c 65 72 73 2e 20 |ink. com|pilers. |
|00004ec0| 49 74 20 61 6c 73 6f 20 | 63 61 6e 6e 6f 74 20 6f |It also |cannot o|
|00004ed0| 63 63 75 72 20 77 69 74 | 68 20 63 6f 64 65 20 67 |ccur wit|h code g|
|00004ee0| 65 6e 65 72 61 74 65 64 | 20 75 73 69 6e 67 20 74 |enerated| using t|
|00004ef0| 68 65 20 6d 61 63 72 6f | 73 20 63 6f 6e 74 61 69 |he macro|s contai|
|00004f00| 6e 65 64 20 69 6e 20 53 | 41 4e 45 4d 61 63 73 2e |ned in S|ANEMacs.|
|00004f10| 61 2e 20 0d 57 61 72 6e | 69 6e 67 3a 09 41 6c 74 |a. .Warn|ing:.Alt|
|00004f20| 68 6f 75 67 68 20 74 68 | 65 20 63 75 72 72 65 6e |hough th|e curren|
|00004f30| 74 20 67 65 6e 65 72 61 | 74 69 6f 6e 20 6f 66 20 |t genera|tion of |
|00004f40| 4d 50 57 20 63 6f 6d 70 | 69 6c 65 72 73 20 63 72 |MPW comp|ilers cr|
|00004f50| 65 61 74 65 20 bd 53 41 | 4e 45 2d 73 61 66 65 20 |eate .SA|NE-safe |
|00004f60| 63 6f 64 65 2c 20 74 68 | 65 20 65 61 72 6c 69 65 |code, th|e earlie|
|00004f70| 72 2c 20 4d 50 57 20 43 | 20 32 2e 30 2e 32 20 63 |r, MPW C| 2.0.2 c|
|00004f80| 6f 6d 70 69 6c 65 72 20 | 6d 61 79 2c 20 75 6e 64 |ompiler |may, und|
|00004f90| 65 72 20 6c 69 6d 69 74 | 65 64 20 63 69 72 63 75 |er limit|ed circu|
|00004fa0| 6d 73 74 61 6e 63 65 73 | 2c 20 67 65 6e 65 72 61 |mstances|, genera|
|00004fb0| 74 65 20 63 6f 64 65 20 | 74 68 61 74 20 68 61 73 |te code |that has|
|00004fc0| 20 70 72 6f 62 6c 65 6d | 73 20 77 69 74 68 20 bd | problem|s with .|
|00004fd0| 53 41 4e 45 2e 20 20 54 | 68 69 73 20 69 73 20 64 |SANE. T|his is d|
|00004fe0| 69 73 63 75 73 73 65 64 | 20 69 6e 20 6d 6f 72 65 |iscussed| in more|
|00004ff0| 20 64 65 74 61 69 6c 20 | 62 65 6c 6f 77 2e 0d 41 | detail |below..A|
|00005000| 64 64 69 74 69 6f 6e 61 | 6c 6c 79 2c 20 69 66 20 |dditiona|lly, if |
|00005010| 79 6f 75 20 68 61 76 65 | 20 68 61 6e 64 20 63 6f |you have| hand co|
|00005020| 64 65 64 20 61 73 73 65 | 6d 62 6c 79 20 6f 72 20 |ded asse|mbly or |
|00005030| 63 6f 64 65 20 77 68 69 | 63 68 20 68 61 73 20 62 |code whi|ch has b|
|00005040| 65 65 6e 20 6f 74 68 65 | 72 77 69 73 65 20 6f 70 |een othe|rwise op|
|00005050| 74 69 6d 69 7a 65 64 20 | 74 6f 20 75 73 65 20 63 |timized |to use c|
|00005060| 6f 6d 6d 6f 6e 20 5f 46 | 50 36 38 4b 20 74 72 61 |ommon _F|P68K tra|
|00005070| 70 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 79 |p instru|ctions y|
|00005080| 6f 75 20 6d 61 79 20 62 | 65 20 61 74 20 72 69 73 |ou may b|e at ris|
|00005090| 6b 20 66 72 6f 6d 20 62 | 61 63 6b 70 61 74 63 68 |k from b|ackpatch|
|000050a0| 69 6e 67 2e 20 20 57 65 | 20 72 65 63 6f 6d 6d 65 |ing. We| recomme|
|000050b0| 6e 64 20 79 6f 75 20 61 | 64 6a 75 73 74 20 79 6f |nd you a|djust yo|
|000050c0| 75 72 20 63 6f 64 65 20 | 74 6f 20 63 6f 6e 66 6f |ur code |to confo|
|000050d0| 72 6d 20 74 6f 20 74 68 | 65 20 70 72 6f 74 6f 74 |rm to th|e protot|
|000050e0| 79 70 69 63 61 6c 20 73 | 65 71 75 65 6e 63 65 20 |ypical s|equence |
|000050f0| 61 62 6f 76 65 20 61 73 | 20 74 68 65 72 65 20 69 |above as| there i|
|00005100| 73 20 6e 6f 20 70 65 72 | 66 6f 72 6d 61 6e 63 65 |s no per|formance|
|00005110| 20 70 65 6e 61 6c 74 79 | 20 69 6e 76 6f 6c 76 65 | penalty| involve|
|00005120| 64 2e 0d 41 6e 6f 74 68 | 65 72 20 63 6f 6d 6d 6f |d..Anoth|er commo|
|00005130| 6e 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 70 72 |n progra|mming pr|
|00005140| 61 63 74 69 63 65 20 69 | 73 20 69 6c 6c 75 73 74 |actice i|s illust|
|00005150| 72 61 74 65 64 20 69 6e | 20 74 68 65 20 66 6f 6c |rated in| the fol|
|00005160| 6c 6f 77 69 6e 67 20 65 | 78 61 6d 70 6c 65 3a 0d |lowing e|xample:.|
|00005170| 09 6d 6f 76 65 2e 77 09 | 23 24 30 30 30 30 2c 44 |.move.w.|#$0000,D|
|00005180| 30 09 3b 20 4d 6f 76 65 | 20 65 78 74 65 6e 64 65 |0.; Move| extende|
|00005190| 64 20 61 64 64 20 6f 70 | 63 6f 64 65 20 77 6f 72 |d add op|code wor|
|000051a0| 64 20 74 6f 20 44 30 0d | 09 62 72 61 09 40 31 09 |d to D0.|.bra.@1.|
|000051b0| 09 3b 20 42 72 61 6e 63 | 68 20 74 6f 20 73 68 61 |.; Branc|h to sha|
|000051c0| 72 65 64 20 62 61 63 6b | 65 6e 64 20 66 6f 72 20 |red back|end for |
|000051d0| 53 41 4e 45 20 74 72 61 | 70 20 63 61 6c 6c 0d 09 |SANE tra|p call..|
|000051e0| 2e 0d 09 2e 0d 09 2e 0d | 09 6d 6f 76 65 2e 77 09 |........|.move.w.|
|000051f0| 23 24 30 30 30 32 2c 44 | 30 09 3b 20 4d 6f 76 65 |#$0002,D|0.; Move|
|00005200| 20 65 78 74 65 6e 64 65 | 64 20 73 75 62 74 72 61 | extende|d subtra|
|00005210| 63 74 20 6f 70 63 6f 64 | 65 20 77 6f 72 64 20 74 |ct opcod|e word t|
|00005220| 6f 20 44 30 0d 09 62 72 | 61 09 40 31 09 09 3b 20 |o D0..br|a.@1..; |
|00005230| 42 72 61 6e 63 68 20 74 | 6f 20 73 68 61 72 65 64 |Branch t|o shared|
|00005240| 20 62 61 63 6b 65 6e 64 | 20 66 6f 72 20 53 41 4e | backend| for SAN|
|00005250| 45 20 74 72 61 70 20 63 | 61 6c 6c 0d 09 2e 0d 09 |E trap c|all.....|
|00005260| 2e 0d 09 2e 0d 40 31 09 | 6d 6f 76 65 2e 77 09 44 |.....@1.|move.w.D|
|00005270| 30 2c 2d 28 53 50 29 09 | 3b 20 50 75 73 68 20 53 |0,-(SP).|; Push S|
|00005280| 41 4e 45 20 6f 70 63 6f | 64 65 20 77 6f 72 64 20 |ANE opco|de word |
|00005290| 6f 6e 20 73 74 61 63 6b | 0d 09 5f 46 50 36 38 4b |on stack|.._FP68K|
|000052a0| 09 09 09 3b 20 54 72 61 | 70 20 74 6f 20 53 41 4e |...; Tra|p to SAN|
|000052b0| 45 0d 54 68 69 73 20 63 | 6f 64 65 20 6f 70 65 72 |E.This c|ode oper|
|000052c0| 61 74 65 73 20 63 6f 72 | 72 65 63 74 6c 79 20 69 |ates cor|rectly i|
|000052d0| 6e 20 74 68 65 20 70 72 | 65 73 65 6e 63 65 20 6f |n the pr|esence o|
|000052e0| 66 20 bd 53 41 4e 45 2c | 20 62 75 74 20 69 73 20 |f .SANE,| but is |
|000052f0| 63 6c 65 61 72 6c 79 20 | 6e 6f 74 20 62 61 63 6b |clearly |not back|
|00005300| 70 61 74 63 68 61 62 6c | 65 2e 20 49 66 20 79 6f |patchabl|e. If yo|
|00005310| 75 20 68 61 76 65 20 63 | 6f 64 65 20 74 68 61 74 |u have c|ode that|
|00005320| 20 64 6f 65 73 20 74 68 | 69 73 2c 20 79 6f 75 20 | does th|is, you |
|00005330| 6d 69 67 68 74 20 63 6f | 6e 73 69 64 65 72 20 72 |might co|nsider r|
|00005340| 65 77 72 69 74 69 6e 67 | 20 69 74 20 74 6f 20 6f |ewriting| it to o|
|00005350| 62 74 61 69 6e 20 74 68 | 65 20 70 65 72 66 6f 72 |btain th|e perfor|
|00005360| 6d 61 6e 63 65 20 69 6e | 63 72 65 61 73 65 2c 20 |mance in|crease, |
|00005370| 62 75 74 20 74 68 65 20 | 63 6f 64 65 20 77 69 6c |but the |code wil|
|00005380| 6c 20 77 6f 72 6b 20 61 | 73 20 69 73 2e 0d 4d 50 |l work a|s is..MP|
|00005390| 57 20 43 20 32 2e 30 2e | 32 0d 54 68 65 20 4d 50 |W C 2.0.|2.The MP|
|000053a0| 57 20 43 20 32 2e 30 2e | 32 20 63 6f 6d 70 69 6c |W C 2.0.|2 compil|
|000053b0| 65 72 20 6d 61 79 2c 20 | 75 6e 64 65 72 20 6c 69 |er may, |under li|
|000053c0| 6d 69 74 65 64 20 63 69 | 72 63 75 6d 73 74 61 6e |mited ci|rcumstan|
|000053d0| 63 65 73 2c 20 67 65 6e | 65 72 61 74 65 20 63 6f |ces, gen|erate co|
|000053e0| 64 65 20 74 68 61 74 20 | 77 6f 72 6b 73 20 69 6e |de that |works in|
|000053f0| 63 6f 72 72 65 63 74 6c | 79 20 75 6e 64 65 72 20 |correctl|y under |
|00005400| bd 53 41 4e 45 2e 20 41 | 70 70 6c 65 20 72 65 63 |.SANE. A|pple rec|
|00005410| 6f 6d 6d 65 6e 64 73 20 | 74 68 61 74 20 61 6c 6c |ommends |that all|
|00005420| 20 64 65 76 65 6c 6f 70 | 65 72 73 20 75 73 65 20 | develop|ers use |
|00005430| 74 68 65 20 6c 61 74 65 | 73 74 20 64 65 76 65 6c |the late|st devel|
|00005440| 6f 70 6d 65 6e 74 20 74 | 6f 6f 6c 73 2c 20 62 75 |opment t|ools, bu|
|00005450| 74 20 61 73 20 63 6f 6e | 76 65 72 73 69 6f 6e 20 |t as con|version |
|00005460| 6f 66 20 73 6f 75 72 63 | 65 20 6d 61 79 20 62 65 |of sourc|e may be|
|00005470| 20 64 69 66 66 69 63 75 | 6c 74 20 61 6e 64 20 74 | difficu|lt and t|
|00005480| 69 6d 65 20 63 6f 6e 73 | 75 6d 69 6e 67 20 69 6e |ime cons|uming in|
|00005490| 20 73 6f 6d 65 20 63 61 | 73 65 73 2c 20 62 65 6c | some ca|ses, bel|
|000054a0| 6f 77 20 69 73 20 61 20 | 64 65 73 63 72 69 70 74 |ow is a |descript|
|000054b0| 69 6f 6e 20 61 6e 64 20 | 77 6f 72 6b 61 72 6f 75 |ion and |workarou|
|000054c0| 6e 64 20 66 6f 72 20 74 | 68 65 20 70 72 6f 62 6c |nd for t|he probl|
|000054d0| 65 6d 2e 20 20 41 67 61 | 69 6e 2c 20 74 68 69 73 |em. Aga|in, this|
|000054e0| 20 6f 6e 6c 79 20 61 66 | 66 65 63 74 73 20 63 6f | only af|fects co|
|000054f0| 64 65 20 63 6f 6d 70 69 | 6c 65 64 20 77 69 74 68 |de compi|led with|
|00005500| 6f 75 74 20 74 68 65 20 | 2d 6d 63 36 38 38 38 31 |out the |-mc68881|
|00005510| 20 6f 70 74 69 6f 6e 2e | 0d 54 68 65 20 66 6f 6c | option.|.The fol|
|00005520| 6c 6f 77 69 6e 67 20 63 | 6f 64 65 20 64 65 6d 6f |lowing c|ode demo|
|00005530| 6e 73 74 72 61 74 65 73 | 20 74 68 65 20 70 72 6f |nstrates| the pro|
|00005540| 62 6c 65 6d 0d 09 73 74 | 72 75 63 74 20 66 6f 6f |blem..st|ruct foo|
|00005550| 20 7b 0d 09 09 64 6f 75 | 62 6c 65 20 64 61 74 61 | {...dou|ble data|
|00005560| 3b 0d 09 09 66 6c 6f 61 | 74 20 6e 75 6d 3b 0d 09 |;...floa|t num;..|
|00005570| 7d 3b 0d 09 66 6f 6f 62 | 61 72 28 66 2c 62 29 0d |};..foob|ar(f,b).|
|00005580| 09 73 74 72 75 63 74 20 | 66 6f 6f 20 2a 66 3b 0d |.struct |foo *f;.|
|00005590| 09 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 62 |.unsigne|d char b|
|000055a0| 3b 0d 09 7b 0d 20 20 09 | 09 65 78 74 65 6e 64 65 |;..{. .|.extende|
|000055b0| 64 20 6e 75 6d 3b 0d 20 | 20 09 09 6e 75 6d 20 3d |d num;. | ..num =|
|000055c0| 20 33 2e 31 34 31 35 39 | 3b 0d 20 09 20 09 69 66 | 3.14159|;. . .if|
|000055d0| 20 28 62 29 0d 20 09 09 | 09 66 2d 3e 64 61 74 61 | (b). ..|.f->data|
|000055e0| 20 3d 20 6e 75 6d 3b 09 | 2f 2a 20 46 50 20 6f 70 | = num;.|/* FP op|
|000055f0| 65 72 61 74 69 6f 6e 20 | 65 6e 64 73 20 62 6c 6f |eration |ends blo|
|00005600| 63 6b 20 2a 2f 0d 20 09 | 20 09 65 6c 73 65 0d 09 |ck */. .| .else..|
|00005610| 20 20 09 09 66 2d 3e 6e | 75 6d 20 3d 20 6e 75 6d | ..f->n|um = num|
|00005620| 3b 09 09 2f 2a 20 41 6e | 6f 74 68 65 72 20 46 50 |;../* An|other FP|
|00005630| 20 6f 70 65 72 61 74 69 | 6f 6e 20 65 6e 64 73 20 | operati|on ends |
|00005640| 62 6c 6f 63 6b 20 2a 2f | 0d 09 20 09 72 65 74 75 |block */|.. .retu|
|00005650| 72 6e 3b 0d 09 7d 0d 54 | 68 65 20 63 72 69 74 69 |rn;..}.T|he criti|
|00005660| 63 61 6c 20 63 6f 6d 62 | 69 6e 61 74 69 6f 6e 20 |cal comb|ination |
|00005670| 6f 66 20 65 76 65 6e 74 | 73 20 6f 63 63 75 72 73 |of event|s occurs|
|00005680| 20 77 68 65 6e 20 6d 6f | 72 65 20 74 68 61 6e 20 | when mo|re than |
|00005690| 6f 6e 65 20 62 6c 6f 63 | 6b 20 69 6e 20 61 6e 20 |one bloc|k in an |
|000056a0| 69 66 2d 65 6c 73 65 20 | 6f 72 20 73 77 69 74 63 |if-else |or switc|
|000056b0| 68 20 73 74 61 74 65 6d | 65 6e 74 73 20 65 6e 64 |h statem|ents end|
|000056c0| 73 20 77 69 74 68 20 61 | 20 66 6c 6f 61 74 69 6e |s with a| floatin|
|000056d0| 67 2d 70 6f 69 6e 74 20 | 6f 70 65 72 61 74 69 6f |g-point |operatio|
|000056e0| 6e 20 6f 72 20 63 6f 6e | 76 65 72 73 69 6f 6e 2e |n or con|version.|
|000056f0| 20 54 68 65 20 63 6f 6d | 70 69 6c 65 72 20 74 72 | The com|piler tr|
|00005700| 69 65 73 20 74 6f 20 6f | 70 74 69 6d 69 7a 65 20 |ies to o|ptimize |
|00005710| 74 68 65 20 66 69 6e 61 | 6c 20 66 6c 6f 61 74 69 |the fina|l floati|
|00005720| 6e 67 2d 70 6f 69 6e 74 | 20 6f 70 65 72 61 74 69 |ng-point| operati|
|00005730| 6f 6e 20 62 79 20 70 75 | 73 68 69 6e 67 20 61 20 |on by pu|shing a |
|00005740| 73 65 6c 65 63 74 6f 72 | 20 6f 6e 20 74 68 65 20 |selector| on the |
|00005750| 73 74 61 63 6b 20 74 68 | 65 6e 20 62 72 61 6e 63 |stack th|en branc|
|00005760| 68 69 6e 67 20 74 6f 20 | 61 20 63 6f 6d 6d 6f 6e |hing to |a common|
|00005770| 20 5f 46 50 36 38 4b 20 | 74 72 61 70 2e 20 54 68 | _FP68K |trap. Th|
|00005780| 69 73 20 69 73 20 61 20 | 63 6c 61 73 73 69 63 20 |is is a |classic |
|00005790| 65 78 61 6d 70 6c 65 20 | 6f 66 20 63 6f 64 65 2c |example |of code,|
|000057a0| 20 6c 69 6b 65 20 74 68 | 61 74 20 63 69 74 65 64 | like th|at cited|
|000057b0| 20 61 62 6f 76 65 2c 20 | 74 68 61 74 20 77 6f 72 | above, |that wor|
|000057c0| 6b 73 20 69 6e 63 6f 72 | 72 65 63 74 6c 79 20 75 |ks incor|rectly u|
|000057d0| 6e 64 65 72 20 bd 53 41 | 4e 45 2e 0d 54 68 65 20 |nder .SA|NE..The |
|000057e0| 77 6f 72 6b 61 72 6f 75 | 6e 64 20 69 73 20 74 6f |workarou|nd is to|
|000057f0| 20 65 6c 69 6d 69 6e 61 | 74 65 20 74 68 65 20 66 | elimina|te the f|
|00005800| 69 6e 61 6c 20 66 6c 6f | 61 74 69 6e 67 2d 70 6f |inal flo|ating-po|
|00005810| 69 6e 74 20 6f 70 65 72 | 61 74 69 6f 6e 2e 20 48 |int oper|ation. H|
|00005820| 65 72 65 20 69 73 20 6f | 6e 65 20 77 61 79 20 74 |ere is o|ne way t|
|00005830| 6f 20 64 6f 20 74 68 69 | 73 3a 0d 09 66 6f 6f 62 |o do thi|s:..foob|
|00005840| 61 72 28 66 2c 62 29 0d | 09 73 74 72 75 63 74 20 |ar(f,b).|.struct |
|00005850| 2a 66 3b 0d 09 75 6e 73 | 69 67 6e 65 64 20 63 68 |*f;..uns|igned ch|
|00005860| 61 72 20 62 3b 0d 09 7b | 0d 09 09 65 78 74 65 6e |ar b;..{|...exten|
|00005870| 64 65 64 20 6e 75 6d 3b | 0d 09 09 69 6e 74 20 69 |ded num;|...int i|
|00005880| 64 75 6d 6d 79 3b 0d 09 | 09 6e 75 6d 20 3d 20 33 |dummy;..|.num = 3|
|00005890| 2e 31 34 31 35 39 3b 0d | 09 09 69 66 20 28 62 29 |.14159;.|..if (b)|
|000058a0| 20 7b 0d 09 09 09 66 2d | 3e 64 61 74 61 20 3d 20 | {....f-|>data = |
|000058b0| 6e 75 6d 3b 0d 09 09 09 | 69 64 75 6d 6d 79 20 3d |num;....|idummy =|
|000058c0| 20 31 3b 09 2f 2a 20 45 | 6e 64 20 69 66 20 62 6c | 1;./* E|nd if bl|
|000058d0| 6f 63 6b 20 77 69 74 68 | 20 61 20 6e 6f 6e 2d 46 |ock with| a non-F|
|000058e0| 50 20 6f 70 65 72 61 74 | 69 6f 6e 20 2a 2f 0d 09 |P operat|ion */..|
|000058f0| 09 7d 20 65 6c 73 65 20 | 7b 0d 09 09 09 66 2d 3e |.} else |{....f->|
|00005900| 6e 75 6d 20 3d 20 6e 75 | 6d 3b 0d 09 09 09 69 64 |num = nu|m;....id|
|00005910| 75 6d 6d 79 20 3d 20 30 | 3b 09 2f 2a 20 45 6e 64 |ummy = 0|;./* End|
|00005920| 20 65 6c 73 65 20 62 6c | 6f 63 6b 20 77 69 74 68 | else bl|ock with|
|00005930| 20 61 20 6e 6f 6e 2d 46 | 50 20 6f 70 65 72 61 74 | a non-F|P operat|
|00005940| 69 6f 6e 20 2a 2f 0d 09 | 09 7d 0d 09 09 72 65 74 |ion */..|.}...ret|
|00005950| 75 72 6e 3b 0d 09 7d 0d | 49 6e 20 74 68 69 73 20 |urn;..}.|In this |
|00005960| 63 61 73 65 2c 20 65 61 | 63 68 20 66 6c 6f 61 74 |case, ea|ch float|
|00005970| 69 6e 67 2d 70 6f 69 6e | 74 20 6f 70 65 72 61 74 |ing-poin|t operat|
|00005980| 69 6f 6e 20 67 65 74 73 | 20 69 74 73 20 6f 77 6e |ion gets| its own|
|00005990| 20 5f 46 50 36 38 4b 20 | 74 72 61 70 20 73 6f 20 | _FP68K |trap so |
|000059a0| 74 68 65 72 65 20 61 72 | 65 20 6e 6f 20 70 72 6f |there ar|e no pro|
|000059b0| 62 6c 65 6d 73 2e 0d 4f | 74 68 65 72 20 50 69 74 |blems..O|ther Pit|
|000059c0| 66 61 6c 6c 73 0d 54 68 | 65 20 62 61 63 6b 70 61 |falls.Th|e backpa|
|000059d0| 74 63 68 69 6e 67 20 70 | 65 72 66 6f 72 6d 65 64 |tching p|erformed|
|000059e0| 20 62 79 20 bd 53 41 4e | 45 20 63 61 6e 20 68 61 | by .SAN|E can ha|
|000059f0| 76 65 20 6f 74 68 65 72 | 20 69 6d 70 6c 69 63 61 |ve other| implica|
|00005a00| 74 69 6f 6e 73 20 66 6f | 72 20 64 65 76 65 6c 6f |tions fo|r develo|
|00005a10| 70 65 72 73 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |pers. Fo|r exampl|
|00005a20| 65 2c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |e, appli|cations |
|00005a30| 74 68 61 74 20 63 68 65 | 63 6b 73 75 6d 20 74 68 |that che|cksum th|
|00005a40| 65 69 72 20 63 6f 64 65 | 20 73 65 67 6d 65 6e 74 |eir code| segment|
|00005a50| 73 20 28 70 65 72 68 61 | 70 73 20 74 6f 20 63 68 |s (perha|ps to ch|
|00005a60| 65 63 6b 20 66 6f 72 20 | 76 69 72 75 73 65 73 29 |eck for |viruses)|
|00005a70| 20 77 69 6c 6c 20 64 65 | 74 65 63 74 20 74 68 61 | will de|tect tha|
|00005a80| 74 20 74 68 65 20 73 65 | 67 6d 65 6e 74 20 68 61 |t the se|gment ha|
|00005a90| 73 20 62 65 65 6e 20 6d | 6f 64 69 66 69 65 64 2e |s been m|odified.|
|00005aa0| 20 53 75 63 68 20 61 70 | 70 6c 69 63 61 74 69 6f | Such ap|plicatio|
|00005ab0| 6e 73 20 73 68 6f 75 6c | 64 20 63 68 65 63 6b 73 |ns shoul|d checks|
|00005ac0| 75 6d 20 73 65 67 6d 65 | 6e 74 73 20 6f 6e 6c 79 |um segme|nts only|
|00005ad0| 20 61 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | at appl|ication |
|00005ae0| 73 74 61 72 74 75 70 20 | 6f 72 20 77 68 65 6e 20 |startup |or when |
|00005af0| 74 68 65 20 73 65 67 6d | 65 6e 74 73 20 61 72 65 |the segm|ents are|
|00005b00| 20 6c 6f 61 64 65 64 2c | 20 6e 6f 74 20 61 66 74 | loaded,| not aft|
|00005b10| 65 72 20 74 68 65 79 20 | 68 61 76 65 20 62 65 65 |er they |have bee|
|00005b20| 6e 20 65 78 65 63 75 74 | 65 64 2e 0d 4c 69 6b 65 |n execut|ed..Like|
|00005b30| 77 69 73 65 2c 20 61 6e | 20 61 70 70 6c 69 63 61 |wise, an| applica|
|00005b40| 74 69 6f 6e 20 6d 75 73 | 74 20 6e 6f 74 20 63 72 |tion mus|t not cr|
|00005b50| 65 61 74 65 20 61 20 73 | 69 74 75 61 74 69 6f 6e |eate a s|ituation|
|00005b60| 20 77 68 69 63 68 20 77 | 69 6c 6c 20 63 61 75 73 | which w|ill caus|
|00005b70| 65 20 74 68 65 20 52 65 | 73 6f 75 72 63 65 20 4d |e the Re|source M|
|00005b80| 61 6e 61 67 65 72 20 74 | 6f 20 77 72 69 74 65 20 |anager t|o write |
|00005b90| 61 20 63 6f 64 65 20 73 | 65 67 6d 65 6e 74 20 6f |a code s|egment o|
|00005ba0| 75 74 20 74 6f 20 64 69 | 73 6b 20 61 66 74 65 72 |ut to di|sk after|
|00005bb0| 20 69 74 20 68 61 73 20 | 62 65 65 6e 20 65 78 65 | it has |been exe|
|00005bc0| 63 75 74 65 64 2e 20 49 | 66 20 73 75 63 68 20 61 |cuted. I|f such a|
|00005bd0| 20 73 65 67 6d 65 6e 74 | 20 62 65 65 6e 20 6d 6f | segment| been mo|
|00005be0| 64 69 66 69 65 64 20 62 | 79 20 bd 53 41 4e 45 2c |dified b|y .SANE,|
|00005bf0| 20 69 74 20 63 61 6e 20 | 66 61 69 6c 20 77 68 65 | it can |fail whe|
|00005c00| 6e 20 73 75 62 73 65 71 | 75 65 6e 74 6c 79 20 6c |n subseq|uently l|
|00005c10| 6f 61 64 65 64 20 69 6e | 74 6f 20 6d 65 6d 6f 72 |oaded in|to memor|
|00005c20| 79 2e 20 20 53 69 6e 63 | 65 20 43 6c 6f 73 65 52 |y. Sinc|e CloseR|
|00005c30| 65 73 46 69 6c 65 20 69 | 73 20 63 61 6c 6c 65 64 |esFile i|s called|
|00005c40| 20 77 68 65 6e 20 74 68 | 65 20 61 70 70 6c 69 63 | when th|e applic|
|00005c50| 61 74 69 6f 6e 20 71 75 | 69 74 73 20 69 74 20 77 |ation qu|its it w|
|00005c60| 69 6c 6c 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ill auto|maticall|
|00005c70| 79 20 77 72 69 74 65 20 | 6f 75 74 20 63 68 61 6e |y write |out chan|
|00005c80| 67 65 64 20 72 65 73 6f | 75 72 63 65 73 20 28 69 |ged reso|urces (i|
|00005c90| 2e 65 2e 20 69 66 20 74 | 68 65 20 72 65 73 43 68 |.e. if t|he resCh|
|00005ca0| 61 6e 67 65 64 20 61 74 | 74 72 69 62 75 74 65 20 |anged at|tribute |
|00005cb0| 69 73 20 74 72 75 65 29 | 20 77 68 65 6e 20 63 6c |is true)| when cl|
|00005cc0| 6f 73 69 6e 67 20 74 68 | 65 20 66 69 6c 65 2e 0d |osing th|e file..|
|00005cd0| 46 75 72 74 68 65 72 20 | 52 65 66 65 72 65 6e 63 |Further |Referenc|
|00005ce0| 65 3a 0d a5 09 41 70 70 | 6c 65 20 4e 75 6d 65 72 |e:...App|le Numer|
|00005cf0| 69 63 73 20 4d 61 6e 75 | 61 6c 2c 20 53 65 63 6f |ics Manu|al, Seco|
|00005d00| 6e 64 20 45 64 69 74 69 | 6f 6e 0d 4f 53 20 35 30 |nd Editi|on.OS 50|
|00005d10| 35 20 2d 20 47 65 73 74 | 61 6c 74 20 4d 61 6e 61 |5 - Gest|alt Mana|
|00005d20| 67 65 72 20 51 26 41 73 | 0d 4f 70 65 72 61 74 69 |ger Q&As|.Operati|
|00005d30| 6e 67 20 53 79 73 74 65 | 6d 20 55 74 69 6c 69 74 |ng Syste|m Utilit|
|00005d40| 69 65 73 09 0d 52 65 76 | 69 73 65 64 20 62 79 3a |ies..Rev|ised by:|
|00005d50| 09 44 65 76 65 6c 6f 70 | 65 72 20 53 75 70 70 6f |.Develop|er Suppo|
|00005d60| 72 74 20 43 65 6e 74 65 | 72 09 53 65 70 74 65 6d |rt Cente|r.Septem|
|00005d70| 62 65 72 20 31 39 39 33 | 0d 57 72 69 74 74 65 6e |ber 1993|.Written|
|00005d80| 20 62 79 3a 09 44 65 76 | 65 6c 6f 70 65 72 20 53 | by:.Dev|eloper S|
|00005d90| 75 70 70 6f 72 74 20 43 | 65 6e 74 65 72 09 4a 75 |upport C|enter.Ju|
|00005da0| 6e 65 20 31 39 39 33 0d | 54 68 69 73 20 54 65 63 |ne 1993.|This Tec|
|00005db0| 68 6e 69 63 61 6c 20 4e | 6f 74 65 20 63 6f 6e 74 |hnical N|ote cont|
|00005dc0| 61 69 6e 73 20 61 20 63 | 6f 6c 6c 65 63 74 69 6f |ains a c|ollectio|
|00005dd0| 6e 20 6f 66 20 51 26 41 | 73 20 72 65 6c 61 74 69 |n of Q&A|s relati|
|00005de0| 6e 67 20 74 6f 20 61 20 | 73 70 65 63 69 66 69 63 |ng to a |specific|
|00005df0| 20 74 6f 70 69 63 d1 71 | 75 65 73 74 69 6f 6e 73 | topic.q|uestions|
|00005e00| 20 79 6f 75 d5 76 65 20 | 73 65 6e 74 20 74 68 65 | you.ve |sent the|
|00005e10| 20 44 65 76 65 6c 6f 70 | 65 72 20 53 75 70 70 6f | Develop|er Suppo|
|00005e20| 72 74 20 43 65 6e 74 65 | 72 20 28 44 53 43 29 20 |rt Cente|r (DSC) |
|00005e30| 61 6c 6f 6e 67 20 77 69 | 74 68 20 61 6e 73 77 65 |along wi|th answe|
|00005e40| 72 73 20 66 72 6f 6d 20 | 74 68 65 20 44 53 43 20 |rs from |the DSC |
|00005e50| 65 6e 67 69 6e 65 65 72 | 73 2e 20 57 68 69 6c 65 |engineer|s. While|
|00005e60| 20 44 53 43 20 65 6e 67 | 69 6e 65 65 72 73 20 68 | DSC eng|ineers h|
|00005e70| 61 76 65 20 63 68 65 63 | 6b 65 64 20 74 68 65 20 |ave chec|ked the |
|00005e80| 51 26 41 20 63 6f 6e 74 | 65 6e 74 20 66 6f 72 20 |Q&A cont|ent for |
|00005e90| 61 63 63 75 72 61 63 79 | 2c 20 74 68 65 20 51 26 |accuracy|, the Q&|
|00005ea0| 41 20 54 65 63 68 6e 69 | 63 61 6c 20 4e 6f 74 65 |A Techni|cal Note|
|00005eb0| 73 20 64 6f 6e d5 74 20 | 68 61 76 65 20 74 68 65 |s don.t |have the|
|00005ec0| 20 65 64 69 74 69 6e 67 | 20 61 6e 64 20 6f 72 67 | editing| and org|
|00005ed0| 61 6e 69 7a 61 74 69 6f | 6e 20 6f 66 20 6f 74 68 |anizatio|n of oth|
|00005ee0| 65 72 20 54 65 63 68 6e | 69 63 61 6c 20 4e 6f 74 |er Techn|ical Not|
|00005ef0| 65 73 2e 20 54 68 65 20 | 51 26 41 20 66 75 6e 63 |es. The |Q&A func|
|00005f00| 74 69 6f 6e 20 69 73 20 | 74 6f 20 67 65 74 20 6e |tion is |to get n|
|00005f10| 65 77 20 74 65 63 68 6e | 69 63 61 6c 20 69 6e 66 |ew techn|ical inf|
|00005f20| 6f 72 6d 61 74 69 6f 6e | 20 61 6e 64 20 75 70 64 |ormation| and upd|
|00005f30| 61 74 65 73 20 74 6f 20 | 79 6f 75 20 71 75 69 63 |ates to |you quic|
|00005f40| 6b 6c 79 2c 20 73 61 76 | 69 6e 67 20 74 68 65 20 |kly, sav|ing the |
|00005f50| 70 6f 6c 69 73 68 20 66 | 6f 72 20 77 68 65 6e 20 |polish f|or when |
|00005f60| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00005f70| 6d 69 67 72 61 74 65 73 | 20 69 6e 74 6f 20 72 65 |migrates| into re|
|00005f80| 66 65 72 65 6e 63 65 20 | 6d 61 6e 75 61 6c 73 2e |ference |manuals.|
|00005f90| 0d 51 26 41 73 20 61 72 | 65 20 6e 6f 77 20 69 6e |.Q&As ar|e now in|
|00005fa0| 63 6c 75 64 65 64 20 77 | 69 74 68 20 54 65 63 68 |cluded w|ith Tech|
|00005fb0| 6e 69 63 61 6c 20 4e 6f | 74 65 73 20 74 6f 20 6d |nical No|tes to m|
|00005fc0| 61 6b 65 20 61 63 63 65 | 73 73 20 74 6f 20 74 65 |ake acce|ss to te|
|00005fd0| 63 68 6e 69 63 61 6c 20 | 75 70 64 61 74 65 73 20 |chnical |updates |
|00005fe0| 65 61 73 69 65 72 20 66 | 6f 72 20 79 6f 75 2e 20 |easier f|or you. |
|00005ff0| 49 66 20 79 6f 75 20 68 | 61 76 65 20 63 6f 6d 6d |If you h|ave comm|
|00006000| 65 6e 74 73 20 6f 72 20 | 73 75 67 67 65 73 74 69 |ents or |suggesti|
|00006010| 6f 6e 73 20 61 62 6f 75 | 74 20 51 26 41 20 63 6f |ons abou|t Q&A co|
|00006020| 6e 74 65 6e 74 20 6f 72 | 20 64 69 73 74 72 69 62 |ntent or| distrib|
|00006030| 75 74 69 6f 6e 2c 20 70 | 6c 65 61 73 65 20 6c 65 |ution, p|lease le|
|00006040| 74 20 75 73 20 6b 6e 6f | 77 20 62 79 20 73 65 6e |t us kno|w by sen|
|00006050| 64 69 6e 67 20 61 6e 20 | 41 70 70 6c 65 4c 69 6e |ding an |AppleLin|
|00006060| 6b 20 74 6f 20 44 45 56 | 46 45 45 44 42 41 43 4b |k to DEV|FEEDBACK|
|00006070| 2e 20 41 70 70 6c 65 20 | 50 61 72 74 6e 65 72 73 |. Apple |Partners|
|00006080| 20 6d 61 79 20 73 65 6e | 64 20 74 65 63 68 6e 69 | may sen|d techni|
|00006090| 63 61 6c 20 71 75 65 73 | 74 69 6f 6e 73 20 61 62 |cal ques|tions ab|
|000060a0| 6f 75 74 20 51 26 41 20 | 63 6f 6e 74 65 6e 74 20 |out Q&A |content |
|000060b0| 74 6f 20 44 45 56 53 55 | 50 50 4f 52 54 20 66 6f |to DEVSU|PPORT fo|
|000060c0| 72 20 72 65 73 6f 6c 75 | 74 69 6f 6e 2e 0d 4e 65 |r resolu|tion..Ne|
|000060d0| 77 20 51 26 41 73 20 69 | 6e 20 74 68 69 73 20 54 |w Q&As i|n this T|
|000060e0| 65 63 68 6e 69 63 61 6c | 20 4e 6f 74 65 3a 0d 44 |echnical| Note:.D|
|000060f0| 65 74 65 72 6d 69 6e 69 | 6e 67 20 77 68 65 74 68 |etermini|ng wheth|
|00006100| 65 72 20 61 20 4d 61 63 | 69 6e 74 6f 73 68 20 69 |er a Mac|intosh i|
|00006110| 73 20 61 20 55 2e 53 2e | 20 6d 61 63 68 69 6e 65 |s a U.S.| machine|
|00006120| 0d 44 65 74 65 72 6d 69 | 6e 69 6e 67 20 77 68 65 |.Determi|ning whe|
|00006130| 74 68 65 72 20 61 20 4d | 61 63 69 6e 74 6f 73 68 |ther a M|acintosh|
|00006140| 20 69 73 20 61 20 55 2e | 53 2e 20 6d 61 63 68 69 | is a U.|S. machi|
|00006150| 6e 65 0d 44 61 74 65 20 | 77 72 69 74 74 65 6e 3a |ne.Date |written:|
|00006160| 20 20 31 2f 31 33 2f 39 | 33 0d 4c 61 73 74 20 72 | 1/13/9|3.Last r|
|00006170| 65 76 69 65 77 65 64 3a | 20 20 36 2f 31 34 2f 39 |eviewed:| 6/14/9|
|00006180| 33 0d 49 73 20 74 68 65 | 72 65 20 61 20 77 61 79 |3.Is the|re a way|
|00006190| 20 74 6f 20 63 68 65 63 | 6b 20 77 68 65 74 68 65 | to chec|k whethe|
|000061a0| 72 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |r the Ma|cintosh |
|000061b0| 6d 79 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 69 |my appli|cation i|
|000061c0| 73 20 72 75 6e 6e 69 6e | 67 20 6f 6e 20 69 73 20 |s runnin|g on is |
|000061d0| 61 20 55 2e 53 2e 20 6d | 61 63 68 69 6e 65 3f 20 |a U.S. m|achine? |
|000061e0| 49 20 63 6f 75 6c 64 20 | 63 68 65 63 6b 20 74 68 |I could |check th|
|000061f0| 65 20 6e 61 74 69 6f 6e | 61 6c 69 74 79 20 6f 66 |e nation|ality of|
|00006200| 20 74 68 65 20 73 79 73 | 74 65 6d 20 73 6f 66 74 | the sys|tem soft|
|00006210| 77 61 72 65 20 74 68 61 | 74 d5 73 20 72 75 6e 6e |ware tha|t.s runn|
|00006220| 69 6e 67 2c 20 62 75 74 | 20 49 20 6e 65 65 64 20 |ing, but| I need |
|00006230| 73 6f 6d 65 74 68 69 6e | 67 20 74 68 61 74 20 61 |somethin|g that a|
|00006240| 20 75 73 65 72 20 63 61 | 6e d5 74 20 65 61 73 69 | user ca|n.t easi|
|00006250| 6c 79 20 63 68 61 6e 67 | 65 2e 20 57 65 d5 72 65 |ly chang|e. We.re|
|00006260| 20 68 61 76 69 6e 67 20 | 70 72 6f 62 6c 65 6d 73 | having |problems|
|00006270| 20 77 69 74 68 20 6c 6f | 63 61 6c 20 72 65 73 65 | with lo|cal rese|
|00006280| 6c 6c 65 72 73 20 73 65 | 6c 6c 69 6e 67 20 6e 6f |llers se|lling no|
|00006290| 6e 65 78 70 6f 72 74 20 | 63 6f 70 69 65 73 20 6f |nexport |copies o|
|000062a0| 66 20 6f 75 72 20 73 6f | 66 74 77 61 72 65 20 61 |f our so|ftware a|
|000062b0| 62 72 6f 61 64 20 61 6e | 64 20 6e 65 65 64 20 61 |broad an|d need a|
|000062c0| 20 67 6f 6f 64 2c 20 6e | 6f 74 20 65 61 73 69 6c | good, n|ot easil|
|000062d0| 79 20 63 69 72 63 75 6d | 76 65 6e 74 65 64 20 73 |y circum|vented s|
|000062e0| 6f 6c 75 74 69 6f 6e 2e | 0d 5f 5f 5f 0d 54 68 65 |olution.|.___.The|
|000062f0| 72 65 d5 73 20 6e 6f 20 | 77 61 79 20 74 6f 20 74 |re.s no |way to t|
|00006300| 65 6c 6c 20 74 68 65 20 | 64 69 66 66 65 72 65 6e |ell the |differen|
|00006310| 63 65 20 62 65 63 61 75 | 73 65 20 74 68 65 72 65 |ce becau|se there|
|00006320| 20 69 73 20 6e 6f 20 68 | 61 72 64 77 61 72 65 20 | is no h|ardware |
|00006330| 64 69 66 66 65 72 65 6e | 63 65 2e 20 59 6f 75 20 |differen|ce. You |
|00006340| 63 61 6e 20 75 73 65 20 | 47 65 73 74 61 6c 74 20 |can use |Gestalt |
|00006350| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 74 68 65 |to deter|mine the|
|00006360| 20 74 79 70 65 20 6f 66 | 20 6b 65 79 62 6f 61 72 | type of| keyboar|
|00006370| 64 20 61 6e 64 20 74 68 | 65 20 6b 69 6e 64 20 6f |d and th|e kind o|
|00006380| 66 20 73 63 72 69 70 74 | 20 73 79 73 74 65 6d 20 |f script| system |
|00006390| 69 6e 73 74 61 6c 6c 65 | 64 2e 20 59 6f 75 20 63 |installe|d. You c|
|000063a0| 61 6e 20 65 76 65 6e 20 | 75 73 65 20 69 74 20 74 |an even |use it t|
|000063b0| 6f 20 6c 6f 6f 6b 20 61 | 6e 64 20 73 65 65 20 77 |o look a|nd see w|
|000063c0| 68 65 74 68 65 72 20 74 | 68 65 20 4d 41 50 20 63 |hether t|he MAP c|
|000063d0| 64 65 76 20 69 73 20 73 | 65 74 20 74 6f 20 61 6e |dev is s|et to an|
|000063e0| 79 74 68 69 6e 67 20 6f | 74 68 65 72 20 74 68 61 |ything o|ther tha|
|000063f0| 6e 20 74 68 65 20 55 6e | 69 74 65 64 20 53 74 61 |n the Un|ited Sta|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.